summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-21 21:23:49 +0200
committerChristian Breunig <christian@breunig.cc>2023-07-21 21:57:32 +0200
commit9e5d0384a0b25949edfd0dfc065b6fe572f943e7 (patch)
treecbfac148f777d0dd97bda2b4b58db38f03c1cd02 /smoketest/scripts/cli
parent52830ddfad973ff8acac48cc1ce57af655d9ed5a (diff)
downloadvyos-1x-9e5d0384a0b25949edfd0dfc065b6fe572f943e7.tar.gz
vyos-1x-9e5d0384a0b25949edfd0dfc065b6fe572f943e7.zip
ospf: T5377: add "capability opaque" support
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_ospf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_ospf.py b/smoketest/scripts/cli/test_protocols_ospf.py
index f4b540694..80befbfd6 100755
--- a/smoketest/scripts/cli/test_protocols_ospf.py
+++ b/smoketest/scripts/cli/test_protocols_ospf.py
@@ -484,6 +484,7 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase):
supported_grace_time = '400'
router_ids = ['192.0.2.1', '192.0.2.2']
+ self.cli_set(base_path + ['capability', 'opaque'])
self.cli_set(base_path + ['graceful-restart', 'grace-period', period])
self.cli_set(base_path + ['graceful-restart', 'helper', 'planned-only'])
self.cli_set(base_path + ['graceful-restart', 'helper', 'no-strict-lsa-checking'])
@@ -497,6 +498,7 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase):
# Verify FRR ospfd configuration
frrconfig = self.getFRRconfig('router ospf')
self.assertIn(f'router ospf', frrconfig)
+ self.assertIn(f' capability opaque', frrconfig)
self.assertIn(f' graceful-restart grace-period {period}', frrconfig)
self.assertIn(f' graceful-restart helper planned-only', frrconfig)
self.assertIn(f' no graceful-restart helper strict-lsa-checking', frrconfig)