summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_protocols_ospf.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-24 19:27:45 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-24 19:27:45 +0100
commit73cc357b757eb6129db286709812996ebcc4fd19 (patch)
tree365e994f15d38586c635b6de7bef669f932f5fb3 /smoketest/scripts/cli/test_protocols_ospf.py
parente4f22fbb5133a00e4b087ef602f4b84c60b0f295 (diff)
downloadvyos-1x-73cc357b757eb6129db286709812996ebcc4fd19.tar.gz
vyos-1x-73cc357b757eb6129db286709812996ebcc4fd19.zip
ospf(v3): T3236: T3244: adjust to route-map converted name (_ for -)
A hyphen in a route-map name will be converted to _, take care about this effect during validation.
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_ospf.py')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_ospf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_protocols_ospf.py b/smoketest/scripts/cli/test_protocols_ospf.py
index d78528365..d47838d8c 100755
--- a/smoketest/scripts/cli/test_protocols_ospf.py
+++ b/smoketest/scripts/cli/test_protocols_ospf.py
@@ -25,8 +25,7 @@ from vyos.util import process_named_running
PROCESS_NAME = 'ospfd'
base_path = ['protocols', 'ospf']
-route_map = 'foobarbaz'
-route_map_seq = '10'
+route_map = 'foo-bar-baz10'
def getFRROSPFconfig():
return cmd('vtysh -c "show run" | sed -n "/router ospf/,/^!/p"')
@@ -34,7 +33,8 @@ def getFRROSPFconfig():
class TestProtocolsOSPF(unittest.TestCase):
def setUp(self):
self.session = ConfigSession(os.getpid())
- self.session.set(['policy', 'route-map', route_map, 'rule', route_map_seq, 'action', 'permit'])
+ self.session.set(['policy', 'route-map', route_map, 'rule', '10', 'action', 'permit'])
+ self.session.set(['policy', 'route-map', route_map, 'rule', '20', 'action', 'permit'])
def tearDown(self):
# Check for running process