diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-01 08:19:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 08:19:09 +0100 |
commit | 12957f9f1aa4ab35c460c03dfb3e213639b25a71 (patch) | |
tree | 1996a41fe650a80339c6fe0ffba62f7ca200aaf4 /smoketest/scripts | |
parent | 5a524fa718e2536bb920ef41df04d89b2fbb83ac (diff) | |
parent | 5d98e806ef4edb4439620eff60215aaf30b5a592 (diff) | |
download | vyos-1x-12957f9f1aa4ab35c460c03dfb3e213639b25a71.tar.gz vyos-1x-12957f9f1aa4ab35c460c03dfb3e213639b25a71.zip |
Merge pull request #2547 from aapostoliuk/T4704-circinus
policy: T4704: Allowed to set metric (MED) to (+/-)rtt
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-x | smoketest/scripts/cli/test_policy.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_policy.py b/smoketest/scripts/cli/test_policy.py index 51a33f978..c21d8af4e 100755 --- a/smoketest/scripts/cli/test_policy.py +++ b/smoketest/scripts/cli/test_policy.py @@ -1107,6 +1107,33 @@ class TestPolicy(VyOSUnitTestSHIM.TestCase): 'metric' : '-20', }, }, + '30': { + 'action': 'permit', + 'match': { + 'ip-nexthop-addr': ipv4_nexthop_address, + }, + 'set': { + 'metric': 'rtt', + }, + }, + '40': { + 'action': 'permit', + 'match': { + 'ip-nexthop-addr': ipv4_nexthop_address, + }, + 'set': { + 'metric': '+rtt', + }, + }, + '50': { + 'action': 'permit', + 'match': { + 'ip-nexthop-addr': ipv4_nexthop_address, + }, + 'set': { + 'metric': '-rtt', + }, + }, }, }, } |