From c54b1fd63d5a046befe58da299530de12798cf36 Mon Sep 17 00:00:00 2001
From: Christian Breunig <christian@breunig.cc>
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 <name> rule <rule> set as-path exclude all

(cherry picked from commit 16395c902ff79fcb34019a6d499467488ed45849)
---
 smoketest/scripts/cli/test_policy.py | 1 +
 1 file changed, 1 insertion(+)

(limited to 'smoketest/scripts')

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