summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-01-12 19:40:00 +0100
committerGitHub <noreply@github.com>2023-01-12 19:40:00 +0100
commit0b59afbb9fd06abf87ed340f05b977e52e516266 (patch)
tree8c5730e78b032dde890b8fbfbc8432dc86359ff0 /smoketest
parent9804a878aa929946b280ded9ae6d1379f94044ad (diff)
parent20f448d16c31088ccdcd76d11d11de5f1ac96ce0 (diff)
downloadvyos-1x-0b59afbb9fd06abf87ed340f05b977e52e516266.tar.gz
vyos-1x-0b59afbb9fd06abf87ed340f05b977e52e516266.zip
Merge pull request #1754 from vfreex/ospf-area-range-fix
T4934: ospf: Fix inter-area route summarization
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_ospf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_ospf.py b/smoketest/scripts/cli/test_protocols_ospf.py
index 8dd0160d3..130cd3644 100755
--- a/smoketest/scripts/cli/test_protocols_ospf.py
+++ b/smoketest/scripts/cli/test_protocols_ospf.py
@@ -75,6 +75,9 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase):
self.cli_set(base_path + ['log-adjacency-changes', 'detail'])
self.cli_set(base_path + ['default-metric', metric])
self.cli_set(base_path + ['passive-interface', 'default'])
+ self.cli_set(base_path + ['area', '10', 'network', '10.0.0.0/16'])
+ self.cli_set(base_path + ['area', '10', 'range', '10.0.1.0/24'])
+ self.cli_set(base_path + ['area', '10', 'range', '10.0.2.0/24', 'not-advertise'])
# commit changes
self.cli_commit()
@@ -90,6 +93,11 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase):
self.assertIn(f' capability opaque', frrconfig)
self.assertIn(f' default-metric {metric}', frrconfig)
self.assertIn(f' passive-interface default', frrconfig)
+ self.assertIn(f' area 10 stub', frrconfig)
+ self.assertIn(f' area 10 network 10.0.0.0/16', frrconfig)
+ self.assertIn(f' area 10 range 10.0.1.0/24', frrconfig)
+ self.assertNotIn(f' area 10 range 10.0.1.0/24 not-advertise', frrconfig)
+ self.assertIn(f' area 10 range 10.0.2.0/24 not-advertise', frrconfig)
def test_ospf_03_access_list(self):