From 5d98e806ef4edb4439620eff60215aaf30b5a592 Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Mon, 27 Nov 2023 13:09:22 +0200 Subject: policy: T4704: Allowed to set metric (MED) to (+/-)rtt Allowed to set metric (MED) to (+/-)rtt in the route-map. --- smoketest/scripts/cli/test_policy.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'smoketest/scripts') 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', + }, + }, }, }, } -- cgit v1.2.3