Skip to content

Commit

Permalink
Merge pull request #3142 from vyos/mergify/bp/sagitta/pr-3139
Browse files Browse the repository at this point in the history
policy: T6129: add route-map option "as-path exclude all" (backport #3139)
  • Loading branch information
c-po committed Mar 17, 2024
2 parents 2942040 + c54b1fd commit 42f3b83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions interface-definitions/policy.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -1124,20 +1124,28 @@
<leafNode name="exclude">
<properties>
<help>Remove/exclude from the as-path attribute</help>
<completionHelp>
<list>all</list>
</completionHelp>
<valueHelp>
<format>u32</format>
<format>u32:1-4294967295</format>
<description>AS number</description>
</valueHelp>
<valueHelp>
<format>all</format>
<description>Exclude all AS numbers from the as-path</description>
</valueHelp>
<constraint>
<validator name="as-number-list"/>
<regex>(all)</regex>
</constraint>
</properties>
</leafNode>
<leafNode name="prepend">
<properties>
<help>Prepend to the as-path</help>
<valueHelp>
<format>u32</format>
<format>u32:1-4294967295</format>
<description>AS number</description>
</valueHelp>
<constraint>
Expand Down
1 change: 1 addition & 0 deletions smoketest/scripts/cli/test_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ def test_route_map(self):
'20' : {
'action' : 'permit',
'set' : {
'as-path-exclude' : 'all',
'evpn-gateway-ipv4' : '192.0.2.99',
'evpn-gateway-ipv6' : '2001:db8:f00::1',
},
Expand Down

0 comments on commit 42f3b83

Please sign in to comment.