Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Add new test_api_verify_eigrp_router_id.py
  • Loading branch information
cherifimehdi authored Apr 2, 2024
1 parent 7e6e028 commit 829211d
Showing 1 changed file with 35 additions and 0 deletions.
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_router_id


class TestVerifyEigrpRouterId(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_router_id(self):
result = verify_eigrp_router_id(self.device, ['1.1.1.1'], 'default', 1, 'ipv4', 60, 10)
expected_output = True
self.assertEqual(result, expected_output)

0 comments on commit 829211d

Please sign in to comment.