From 16395c902ff79fcb34019a6d499467488ed45849 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 17 Mar 2024 08:41:22 +0100 Subject: policy: T6129: add route-map option "as-path exclude all" Remove all AS numbers from the AS_PATH of the BGP path's NLRI. set policy route-map rule set as-path exclude all --- interface-definitions/policy.xml.in | 12 ++++++++++-- smoketest/scripts/cli/test_policy.py | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in index 0d82cd3f8..791fa1d87 100644 --- a/interface-definitions/policy.xml.in +++ b/interface-definitions/policy.xml.in @@ -1124,12 +1124,20 @@ Remove/exclude from the as-path attribute + + all + - u32 + u32:1-4294967295 AS number + + all + Exclude all AS numbers from the as-path + + (all) @@ -1137,7 +1145,7 @@ Prepend to the as-path - u32 + u32:1-4294967295 AS number diff --git a/smoketest/scripts/cli/test_policy.py b/smoketest/scripts/cli/test_policy.py index c21d8af4e..ee4445251 100755 --- a/smoketest/scripts/cli/test_policy.py +++ b/smoketest/scripts/cli/test_policy.py @@ -1065,6 +1065,7 @@ class TestPolicy(VyOSUnitTestSHIM.TestCase): '20' : { 'action' : 'permit', 'set' : { + 'as-path-exclude' : 'all', 'evpn-gateway-ipv4' : '192.0.2.99', 'evpn-gateway-ipv6' : '2001:db8:f00::1', }, -- cgit v1.2.3