summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-06 10:51:43 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-06 10:52:50 +0100
commit4d335babebe405a1699d36d8bde3317172b9b483 (patch)
tree242e669affb0ca4ad143fe5d3d4ea44bd3774552 /smoketest/scripts/cli
parentddb793fe29ee1847a8f4e7defe066a140a6ae892 (diff)
downloadvyos-1x-4d335babebe405a1699d36d8bde3317172b9b483.tar.gz
vyos-1x-4d335babebe405a1699d36d8bde3317172b9b483.zip
rip: T2547: migrate to get_config_dict() and FRR reload
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_rip.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_rip.py b/smoketest/scripts/cli/test_protocols_rip.py
index 56c975d7a..1bd069638 100755
--- a/smoketest/scripts/cli/test_protocols_rip.py
+++ b/smoketest/scripts/cli/test_protocols_rip.py
@@ -91,6 +91,8 @@ class TestProtocolsRIP(unittest.TestCase):
self.session.set(base_path + ['interface', interface])
self.session.set(base_path + ['distribute-list', 'interface', interface, 'access-list', 'in', acl_in])
self.session.set(base_path + ['distribute-list', 'interface', interface, 'access-list', 'out', acl_out])
+ self.session.set(base_path + ['distribute-list', 'interface', interface, 'prefix-list', 'in', prefix_list_in])
+ self.session.set(base_path + ['distribute-list', 'interface', interface, 'prefix-list', 'out', prefix_list_out])
for neighbor in neighbors:
self.session.set(base_path + ['neighbor', neighbor])
for network in networks:
@@ -121,6 +123,8 @@ class TestProtocolsRIP(unittest.TestCase):
self.assertIn(f' network {interface}', frrconfig)
self.assertIn(f' distribute-list {acl_in} in {interface}', frrconfig)
self.assertIn(f' distribute-list {acl_out} out {interface}', frrconfig)
+ self.assertIn(f' distribute-list prefix {prefix_list_in} in {interface}', frrconfig)
+ self.assertIn(f' distribute-list prefix {prefix_list_out} out {interface}', frrconfig)
for neighbor in neighbors:
self.assertIn(f' neighbor {neighbor}', frrconfig)
for network in networks: