summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-26 23:42:31 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-26 23:42:31 +0100
commitd55ec755c14b421bfaf4074c2ec83d8d16bd784d (patch)
tree60ba502b10ac3d7b1a569d7dd272b21143eeabd4 /smoketest/scripts/cli
parent66b399b3f7ab5640c341355f6fd3234df661f85a (diff)
downloadvyos-1x-d55ec755c14b421bfaf4074c2ec83d8d16bd784d.tar.gz
vyos-1x-d55ec755c14b421bfaf4074c2ec83d8d16bd784d.zip
smoketest: policy: adjust to FRR 7.3 CLI syntax
No sequence number support in FRR 7.3 for - community-list - extcommunity-list - large-community-list
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_policy.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/smoketest/scripts/cli/test_policy.py b/smoketest/scripts/cli/test_policy.py
index 8efbab7e5..a144d0b88 100755
--- a/smoketest/scripts/cli/test_policy.py
+++ b/smoketest/scripts/cli/test_policy.py
@@ -370,9 +370,8 @@ class TestPolicy(unittest.TestCase):
if 'rule' not in comm_list_config:
continue
- seq = '5'
for rule, rule_config in comm_list_config['rule'].items():
- tmp = f'bgp community-list {comm_list} seq {seq}'
+ tmp = f'bgp community-list {comm_list}'
if rule_config['action'] == 'permit':
tmp += ' permit'
else:
@@ -381,7 +380,6 @@ class TestPolicy(unittest.TestCase):
tmp += ' ' + rule_config['regex']
self.assertIn(tmp, config)
- seq = int(seq) + 5
def test_extended_community_list(self):
test_data = {
@@ -430,14 +428,13 @@ class TestPolicy(unittest.TestCase):
if 'rule' not in comm_list_config:
continue
- seq = '5'
for rule, rule_config in comm_list_config['rule'].items():
# if the community is not a number but a name, the expanded
# keyword is used
expanded = ''
if not comm_list.isnumeric():
expanded = ' expanded'
- tmp = f'bgp extcommunity-list{expanded} {comm_list} seq {seq}'
+ tmp = f'bgp extcommunity-list{expanded} {comm_list}'
if rule_config['action'] == 'permit':
tmp += ' permit'
@@ -447,7 +444,6 @@ class TestPolicy(unittest.TestCase):
tmp += ' ' + rule_config['regex']
self.assertIn(tmp, config)
- seq = int(seq) + 5
def test_large_community_list(self):
@@ -497,9 +493,8 @@ class TestPolicy(unittest.TestCase):
if 'rule' not in comm_list_config:
continue
- seq = '5'
for rule, rule_config in comm_list_config['rule'].items():
- tmp = f'bgp large-community-list expanded {comm_list} seq {seq}'
+ tmp = f'bgp large-community-list expanded {comm_list}'
if rule_config['action'] == 'permit':
tmp += ' permit'
@@ -509,7 +504,6 @@ class TestPolicy(unittest.TestCase):
tmp += ' ' + rule_config['regex']
self.assertIn(tmp, config)
- seq = int(seq) + 5
def test_prefix_list(self):