summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_protocols_rip.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-28 22:59:17 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-28 22:59:17 +0200
commitf9e38622adc6edb66c84c397ef4d0ae9e49e008e (patch)
treeada22e119bedfe9badd22bf583a6958dfbb50be5 /smoketest/scripts/cli/test_protocols_rip.py
parent8099770c1004d4dd756145050157f51f474ede95 (diff)
downloadvyos-1x-f9e38622adc6edb66c84c397ef4d0ae9e49e008e.tar.gz
vyos-1x-f9e38622adc6edb66c84c397ef4d0ae9e49e008e.zip
rip: T4448: add support to set protocol version on an interface level
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_rip.py')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_rip.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_rip.py b/smoketest/scripts/cli/test_protocols_rip.py
index ee882943b..8c100d537 100755
--- a/smoketest/scripts/cli/test_protocols_rip.py
+++ b/smoketest/scripts/cli/test_protocols_rip.py
@@ -160,8 +160,12 @@ class TestProtocolsRIP(VyOSUnitTestSHIM.TestCase):
def test_rip_03_version(self):
version = '1'
+ interface = 'eth0'
self.cli_set(base_path + ['version', version])
+ self.cli_set(base_path + ['interface', interface, 'send', 'version', version])
+ self.cli_set(base_path + ['interface', interface, 'receive', 'version', version])
+
# commit changes
self.cli_commit()
@@ -169,5 +173,10 @@ class TestProtocolsRIP(VyOSUnitTestSHIM.TestCase):
frrconfig = self.getFRRconfig('router rip')
self.assertIn(f'version {version}', frrconfig)
+ frrconfig = self.getFRRconfig(f'interface {interface}')
+ self.assertIn(f' ip rip receive version {version}', frrconfig)
+ self.assertIn(f' ip rip send version {version}', frrconfig)
+
+
if __name__ == '__main__':
unittest.main(verbosity=2)