diff options
author | Cheeze-It <16260577+Cheeze-It@users.noreply.github.com> | 2022-11-26 14:52:58 -0700 |
---|---|---|
committer | Cheeze_It <none@none.com> | 2022-11-26 15:02:27 -0700 |
commit | a835da15e0f2e2d8f6168c561b678e65cf130d18 (patch) | |
tree | 4f0bcb337ffa1c45de47389804065e32c0a080b5 /smoketest/scripts/cli | |
parent | f96731947f2f53a65171aace0bfafe497f523d59 (diff) | |
download | vyos-1x-a835da15e0f2e2d8f6168c561b678e65cf130d18.tar.gz vyos-1x-a835da15e0f2e2d8f6168c561b678e65cf130d18.zip |
ospf: T4739: Adding missing OSPF FRR template
Adding the smoketest.
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-x | smoketest/scripts/cli/test_protocols_ospf.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_ospf.py b/smoketest/scripts/cli/test_protocols_ospf.py index 51c947537..339713bf6 100755 --- a/smoketest/scripts/cli/test_protocols_ospf.py +++ b/smoketest/scripts/cli/test_protocols_ospf.py @@ -70,6 +70,8 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase): self.cli_set(base_path + ['auto-cost', 'reference-bandwidth', bandwidth]) self.cli_set(base_path + ['parameters', 'router-id', router_id]) self.cli_set(base_path + ['parameters', 'abr-type', abr_type]) + self.cli_set(base_path + ['parameters', 'opaque-lsa']) + self.cli_set(base_path + ['parameters', 'rfc1583-compatibility']) self.cli_set(base_path + ['log-adjacency-changes', 'detail']) self.cli_set(base_path + ['default-metric', metric]) @@ -79,10 +81,12 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase): # Verify FRR ospfd configuration frrconfig = self.getFRRconfig('router ospf') self.assertIn(f'router ospf', frrconfig) + self.assertIn(f' compatible rfc1583', frrconfig) self.assertIn(f' auto-cost reference-bandwidth {bandwidth}', frrconfig) self.assertIn(f' ospf router-id {router_id}', frrconfig) self.assertIn(f' ospf abr-type {abr_type}', frrconfig) self.assertIn(f' timers throttle spf 200 1000 10000', frrconfig) # defaults + self.assertIn(f' capability opaque', frrconfig) self.assertIn(f' default-metric {metric}', frrconfig) |