diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-11-14 07:01:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 07:01:09 +0100 |
commit | 4b8534e2f67f41931c3ff262c4fbbf4b43d7afcf (patch) | |
tree | 20ff8647bf42bd6e787f39e56499be95e4e8e9fd /smoketest/scripts/cli/test_policy.py | |
parent | 92b828154497c534ce82af16320ed34f0c15e51c (diff) | |
parent | 2a203e816f7cf3c6152e77277ec114b4767a06c7 (diff) | |
download | vyos-1x-4b8534e2f67f41931c3ff262c4fbbf4b43d7afcf.tar.gz vyos-1x-4b8534e2f67f41931c3ff262c4fbbf4b43d7afcf.zip |
Merge pull request #1655 from fett0/T4813
T4813: Add L3vpn over gre option from route-map
Diffstat (limited to 'smoketest/scripts/cli/test_policy.py')
-rwxr-xr-x | smoketest/scripts/cli/test_policy.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_policy.py b/smoketest/scripts/cli/test_policy.py index 2166e63ec..3a4ef666a 100755 --- a/smoketest/scripts/cli/test_policy.py +++ b/smoketest/scripts/cli/test_policy.py @@ -1030,6 +1030,7 @@ class TestPolicy(VyOSUnitTestSHIM.TestCase): 'metric' : '150', 'metric-type' : 'type-1', 'origin' : 'incomplete', + 'l3vpn' : '', 'originator-id' : '172.16.10.1', 'src' : '100.0.0.1', 'tag' : '65530', @@ -1229,6 +1230,8 @@ class TestPolicy(VyOSUnitTestSHIM.TestCase): self.cli_set(path + ['rule', rule, 'set', 'ipv6-next-hop', 'local', rule_config['set']['ipv6-next-hop-local']]) if 'ip-next-hop' in rule_config['set']: self.cli_set(path + ['rule', rule, 'set', 'ip-next-hop', rule_config['set']['ip-next-hop']]) + if 'l3vpn' in rule_config['set']: + self.cli_set(path + ['rule', rule, 'set', 'l3vpn-nexthop', 'encapsulation', 'gre']) if 'local-preference' in rule_config['set']: self.cli_set(path + ['rule', rule, 'set', 'local-preference', rule_config['set']['local-preference']]) if 'metric' in rule_config['set']: @@ -1408,6 +1411,8 @@ class TestPolicy(VyOSUnitTestSHIM.TestCase): 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 'l3vpn' in rule_config['set']: + tmp += 'l3vpn next-hop encapsulation gre' elif 'local-preference' in rule_config['set']: tmp += 'local-preference ' + rule_config['set']['local-preference'] elif 'metric' in rule_config['set']: |