diff options
author | Sebastien Merle <sebastien@netdef.org> | 2020-01-28 12:59:57 +0100 |
---|---|---|
committer | GalaxyGorilla <sascha@netdef.org> | 2020-08-31 11:09:12 +0200 |
commit | ef3e0d04766a11d1b976807c42da8207e887174e (patch) | |
tree | 23fec16883e5ebdbb60dd6f9685cd28337be13e8 /bgpd/bgpd.h | |
parent | bgpd: convert NHT code to use rb-trees instead of routing tables (diff) | |
download | frr-ef3e0d04766a11d1b976807c42da8207e887174e.tar.xz frr-ef3e0d04766a11d1b976807c42da8207e887174e.zip |
bgpd: Add support for SR-TE Policies in route-maps
Example configuration:
route-map SET_SR_POLICY permit 10
set sr-te color 1
!
router bgp 1
bgp router-id 1.1.1.1
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 update-source lo
address-family ipv4 unicast
neighbor 2.2.2.2 next-hop-self
neighbor 2.2.2.2 route-map SET_SR_POLICY in
exit-address-family
!
!
Learned BGP routes from 2.2.2.2 are mapped to the SR-TE Policy
which is uniquely determined by the BGP nexthop (2.2.2.2 in this
case) and the SR-TE color in the route-map.
Co-authored-by: Renato Westphal <renato@opensourcerouting.org>
Co-authored-by: GalaxyGorilla <sascha@netdef.org>
Co-authored-by: Sebastien Merle <sebastien@netdef.org>
Signed-off-by: Sebastien Merle <sebastien@netdef.org>
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r-- | bgpd/bgpd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index 20a41987c..6145d9305 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h @@ -1538,6 +1538,7 @@ struct bgp_nlri { #define BGP_ATTR_IPV6_EXT_COMMUNITIES 25 #define BGP_ATTR_LARGE_COMMUNITIES 32 #define BGP_ATTR_PREFIX_SID 40 +#define BGP_ATTR_SRTE_COLOR 51 #ifdef ENABLE_BGP_VNC_ATTR #define BGP_ATTR_VNC 255 #endif |