summaryrefslogtreecommitdiffstats
path: root/yang
diff options
context:
space:
mode:
authorguozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>2024-10-24 14:05:23 +0200
committerguozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>2024-11-07 12:02:11 +0100
commit937cf4db1738d768ed7dac8677d16f7585bb75de (patch)
tree1183607421fc5c766ea4af38e4e3d7aa152b44bc /yang
parentMerge pull request #17162 from louis-6wind/fix-bh-nh-vrf (diff)
downloadfrr-937cf4db1738d768ed7dac8677d16f7585bb75de.tar.xz
frr-937cf4db1738d768ed7dac8677d16f7585bb75de.zip
bgpd:support of color extended community color-only types
Add support of color extended community color-only types, RFC 9256. The type only support 00 01 10. configuration example: ! frr version 10.3-dev-my-manual-build frr defaults traditional hostname router3 ! route-map color permit 1 set extcommunity color 10:100 01:200 00:300 exit ! vrf Vrf1 exit-vrf ! interface lo ipv6 address 3::3/128 exit ! router bgp 3 bgp router-id 3.3.3.3 bgp log-neighbor-changes no bgp ebgp-requires-policy no bgp default ipv4-unicast bgp bestpath as-path multipath-relax timers bgp 10 30 neighbor 100.13.13.1 remote-as 1 neighbor 100.13.13.1 advertisement-interval 0 neighbor 100.23.23.2 remote-as 2 neighbor 100.23.23.2 advertisement-interval 0 neighbor 1000:3000::1 remote-as 1 neighbor 1000:3000::1 ebgp-multihop neighbor 1000:3000::1 update-source 1000:3000::3 neighbor 1000:3000::1 capability extended-nexthop neighbor 2000:3000::2 remote-as 2 neighbor 2000:3000::2 ebgp-multihop neighbor 2000:3000::2 update-source 2000:3000::3 neighbor 2000:3000::2 capability extended-nexthop ! address-family ipv4 unicast neighbor 100.13.13.1 activate neighbor 100.23.23.2 activate exit-address-family ! address-family ipv6 unicast redistribute connected route-map color neighbor 1000:3000::1 activate neighbor 2000:3000::2 activate exit-address-family exit ! end Signed-off-by: guozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>
Diffstat (limited to 'yang')
-rw-r--r--yang/frr-bgp-route-map.yang7
1 files changed, 4 insertions, 3 deletions
diff --git a/yang/frr-bgp-route-map.yang b/yang/frr-bgp-route-map.yang
index 4ed80d7d0..5f701d514 100644
--- a/yang/frr-bgp-route-map.yang
+++ b/yang/frr-bgp-route-map.yang
@@ -532,7 +532,7 @@ identity set-extcommunity-color {
typedef color-list {
type string {
- pattern '((429496729[0-5]|42949672[0-8][0-9]|'
+ pattern '((00|01|10|11):(429496729[0-5]|42949672[0-8][0-9]|'
+ '4294967[0-1][0-9]{2}|429496[0-6][0-9]{3}|'
+ '42949[0-5][0-9]{4}|4294[0-8][0-9]{5}|'
+ '429[0-3][0-9]{6}|42[0-8][0-9]{7}|'
@@ -540,10 +540,11 @@ identity set-extcommunity-color {
+ '[1-9][0-9]{0,8})(\s*))+';
}
description
- "The color-list type represent a set of colors of value (1..4294967295)
+ "The color-list type represent a set of colors of value (examples 00:200 01:200 10:200)
values are separated by white spaces";
reference
- "RFC 9012 - The BGP Tunnel Encapsulation Attribute";
+ "RFC 9012 - The BGP Tunnel Encapsulation Attribute.
+ RFC 9256 - Segment Routing Policy Architecture.";
}
augment "/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:rmap-match-condition/frr-route-map:match-condition" {