summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_policy.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-15 09:02:23 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-17 21:19:15 +0200
commitebece7a4cdb942ea1ff7582ceda0f8765c329c9b (patch)
treea07bc9f0888c3dd79a1b1ed9477d6434a0be0143 /smoketest/scripts/cli/test_policy.py
parent837929297855034e4bea339ae5081c68daa4d6cb (diff)
downloadvyos-1x-ebece7a4cdb942ea1ff7582ceda0f8765c329c9b.tar.gz
vyos-1x-ebece7a4cdb942ea1ff7582ceda0f8765c329c9b.zip
policy: T2425: re-implement "policy" tree from vyatta-cfg-quagga in XML/Python
Diffstat (limited to 'smoketest/scripts/cli/test_policy.py')
-rwxr-xr-xsmoketest/scripts/cli/test_policy.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/smoketest/scripts/cli/test_policy.py b/smoketest/scripts/cli/test_policy.py
index 57c1bb088..59425b789 100755
--- a/smoketest/scripts/cli/test_policy.py
+++ b/smoketest/scripts/cli/test_policy.py
@@ -767,9 +767,8 @@ class TestPolicy(VyOSUnitTestSHIM.TestCase):
'10' : {
'action' : 'deny',
'set' : {
-# Disabled b/c of https://phabricator.vyos.net/T3479
-# 'aggregator-as' : '1234567890',
-# 'aggregator-ip' : '10.255.255.0',
+ 'aggregator-as' : '1234567890',
+ 'aggregator-ip' : '10.255.255.0',
'as-path-exclude' : '1234',
'as-path-prepend' : '1234567890 987654321',
'atomic-aggregate' : '',
@@ -1036,12 +1035,12 @@ class TestPolicy(VyOSUnitTestSHIM.TestCase):
tmp += 'atomic-aggregate'
elif 'distance' in rule_config['set']:
tmp += 'distance ' + rule_config['set']['distance']
+ elif 'ip-next-hop' in rule_config['set']:
+ tmp += 'ip next-hop ' + rule_config['set']['ip-next-hop']
elif 'ipv6-next-hop-global' in rule_config['set']:
tmp += 'ipv6 next-hop global ' + rule_config['set']['ipv6-next-hop-global']
elif 'ipv6-next-hop-local' in rule_config['set']:
tmp += 'ipv6 next-hop local ' + rule_config['set']['ipv6-next-hop-local']
- elif 'ip-next-hop' in rule_config['set']:
- tmp += 'ip next-hop ' + rule_config['set']['ip-next-hop']
elif 'large-community' in rule_config['set']:
tmp += 'large-community ' + rule_config['set']['large-community']
elif 'local-preference' in rule_config['set']: