summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-01 13:09:58 +0100
committerGitHub <noreply@github.com>2023-12-01 13:09:58 +0100
commit12e03feaed0b0f847fceec73597c608703228c44 (patch)
tree6be7aed679c8baa90219f1c669eac4ffa177571a /smoketest/scripts/cli
parent93038ae22e6e072ffd5c3cdeae49ec7293e5cc1d (diff)
parenta4f816a65e26338a7d708a243aa59a991a14c950 (diff)
downloadvyos-1x-12e03feaed0b0f847fceec73597c608703228c44.tar.gz
vyos-1x-12e03feaed0b0f847fceec73597c608703228c44.zip
Merge pull request #2558 from vyos/mergify/bp/sagitta/pr-2547
policy: T4704: Allowed to set metric (MED) to (+/-)rtt (backport #2547)
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_policy.py27
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',
+ },
+ },
},
},
}