From 507f6ac423403b57f375309b483c6ccc1c83ad06 Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Thu, 1 Sep 2022 16:39:46 +0300 Subject: policy: T4660: Changed CLI syntax in route-map set community Changed CLI syntax in route-map set community, set large-community, set extcommunity Allows to add multiple communities, large-communities and extcommunities in clear view. Added new well-known communities. Added non-transitive feature in extcommunities. Fixed community's validators. --- interface-definitions/policy.xml.in | 224 +++++++++++++++--------------------- 1 file changed, 94 insertions(+), 130 deletions(-) (limited to 'interface-definitions/policy.xml.in') diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in index e794c4b90..6c60276d5 100644 --- a/interface-definitions/policy.xml.in +++ b/interface-definitions/policy.xml.in @@ -1118,67 +1118,120 @@ - + - BGP communities matching a community-list + BGP community attribute - + + + Add communities to a prefix + #include + + + + + Set communities for a prefix + #include + + + #include + - BGP communities with a community-list + Remove communities defined in a list from a prefix policy community-list + Community-list txt - BGP communities with a community-list + + + + + BGP large community attribute + + + + + Add large communities to a prefix ; + #include + + + + + Set large communities for a prefix + #include + + + #include - Delete BGP communities matching the community-list - + Remove communities defined in a list from a prefix + + policy large-community-list + + + Community-list + txt + - + - Border Gateway Protocl (BGP) community attribute - - local-AS no-advertise no-export internet additive none - - - <aa:nn> - Community number in AA:NN format - - - local-AS - Well-known communities value NO_EXPORT_SUBCONFED 0xFFFFFF03 - - - no-advertise - Well-known communities value NO_ADVERTISE 0xFFFFFF02 - - - no-export - Well-known communities value NO_EXPORT 0xFFFFFF01 - - - internet - Well-known communities value 0 - - - additive - New value is appended to the existing value - - - none - No community attribute - + BGP extended community attribute - + + + + Bandwidth value in Mbps + + cumulative num-multipaths + + + u32:1-25600 + Bandwidth value in Mbps + + + cumulative + Cumulative bandwidth of all multipaths (outbound-only) + + + num-multipaths + Internally computed bandwidth based on number of multipaths (outbound-only) + + + + (cumulative|num-multipaths) + + + + + + The link bandwidth extended community is encoded as non-transitive + + + + + + Set route target value + #include + + + + + Set Site of Origin value + #include + + + #include + + Locally significant administrative distance @@ -1229,71 +1282,6 @@ - - - BGP extended community attribute - - - - - Bandwidth value in Mbps - - cumulative num-multipaths - - - u32:1-25600 - Bandwidth value in Mbps - - - cumulative - Cumulative bandwidth of all multipaths (outbound-only) - - - num-multipaths - Internally computed bandwidth based on number of multipaths (outbound-only) - - - - (cumulative|num-multipaths) - - - - - - Set route target value - - ASN:NN - based on autonomous system number - - - IP:NN - Based on a router-id IP address - - - (((\b(?:(?:2(?:[0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9])\.){3}(?:(?:2([0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9]))\b)|(\d+)):(\d+) ?)+ - - Should be in form: ASN:NN or IPADDR:NN where ASN is autonomous system number - - - - - Set Site of Origin value - - ASN:NN - based on autonomous system number - - - IP:NN - Based on a router-id IP address - - - ((?:[0-9]{1,3}\.){3}[0-9]{1,3}|\d+):\d+ - - Should be in form: ASN:NN or IPADDR:NN where ASN is autonomous system number - - - - Nexthop IP address @@ -1368,30 +1356,6 @@ - - - Set BGP large community value - - txt - ASN:nn:mm BGP large community - - - policy large-community-list - - - - - - Delete BGP communities matching the large community-list - - policy large-community-list - - - txt - BGP large community-list - - - BGP local preference attribute -- cgit v1.2.3