From f9e38622adc6edb66c84c397ef4d0ae9e49e008e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 28 May 2022 22:59:17 +0200 Subject: rip: T4448: add support to set protocol version on an interface level --- smoketest/scripts/cli/test_protocols_rip.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'smoketest/scripts/cli') 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) -- cgit v1.2.3