summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2023-11-27 13:09:22 +0200
committeraapostoliuk <a.apostoliuk@vyos.io>2023-11-30 10:12:25 +0200
commit5d98e806ef4edb4439620eff60215aaf30b5a592 (patch)
tree0be5ffcdc81df8c61fe1f2950a2ddfe1ff652533 /smoketest/scripts/cli
parentb1a6d770e2d391119b318bcd7fa7ae438555440b (diff)
downloadvyos-1x-5d98e806ef4edb4439620eff60215aaf30b5a592.tar.gz
vyos-1x-5d98e806ef4edb4439620eff60215aaf30b5a592.zip
policy: T4704: Allowed to set metric (MED) to (+/-)rtt
Allowed to set metric (MED) to (+/-)rtt in the route-map.
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',
+ },
+ },
},
},
}