From 8c1f4802b48ac52ae737a47c136d603bc99ac7dd Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Tue, 21 Jun 2022 17:32:56 +0000 Subject: Policy: T4475: add support for matching ipv6 addresses on peer option in route-map --- interface-definitions/policy.xml.in | 5 +++++ smoketest/scripts/cli/test_policy.py | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in index a56514c9c..0d0ada591 100644 --- a/interface-definitions/policy.xml.in +++ b/interface-definitions/policy.xml.in @@ -961,8 +961,13 @@ ipv4 Peer IP address + + ipv6 + Peer IPv6 address + + diff --git a/smoketest/scripts/cli/test_policy.py b/smoketest/scripts/cli/test_policy.py index d1531163f..3d37d22ae 100755 --- a/smoketest/scripts/cli/test_policy.py +++ b/smoketest/scripts/cli/test_policy.py @@ -715,6 +715,7 @@ class TestPolicy(VyOSUnitTestSHIM.TestCase): local_pref = '300' metric = '50' peer = '2.3.4.5' + peerv6 = '2001:db8::1' tag = '6542' goto = '25' @@ -803,6 +804,14 @@ class TestPolicy(VyOSUnitTestSHIM.TestCase): 'peer' : peer, }, }, + + '31' : { + 'action' : 'permit', + 'match' : { + 'peer' : peerv6, + }, + }, + '40' : { 'action' : 'permit', 'match' : { -- cgit v1.2.3