-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New test_api_verify_eigrp_interfaces_timers.py file
- Loading branch information
1 parent
8202d1b
commit 1c48a83
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...xe/eigrp/verify/verify_eigrp_interfaces_timers/test_api_verify_eigrp_interfaces_timers.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import os | ||
import unittest | ||
from pyats.topology import loader | ||
from genie.libs.sdk.apis.iosxe.eigrp.verify import verify_eigrp_interfaces_timers | ||
|
||
|
||
class TestVerifyEigrpInterfacesTimers(unittest.TestCase): | ||
|
||
@classmethod | ||
def setUpClass(self): | ||
testbed = f""" | ||
devices: | ||
R1: | ||
connections: | ||
defaults: | ||
class: unicon.Unicon | ||
a: | ||
command: mock_device_cli --os iosxe --mock_data_dir {os.path.dirname(__file__)}/mock_data --state connect | ||
protocol: unknown | ||
os: iosxe | ||
platform: iosxe | ||
type: iosxe | ||
""" | ||
self.testbed = loader.load(testbed) | ||
self.device = self.testbed.devices['R1'] | ||
self.device.connect( | ||
learn_hostname=True, | ||
init_config_commands=[], | ||
init_exec_commands=[] | ||
) | ||
|
||
def test_verify_eigrp_interfaces_timers(self): | ||
result = verify_eigrp_interfaces_timers(self.device, {'FastEthernet0/0': [{'hello_interval': 5}, {'hold_time': 15}]}, 'default', 1, 'ipv4', 60, 10) | ||
expected_output = True | ||
self.assertEqual(result, expected_output) |