]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgpd.h
bgpd: Add support for SR-TE Policies in route-maps
authorSebastien Merle <sebastien@netdef.org>
Tue, 28 Jan 2020 11:59:57 +0000 (11:59 +0000)
committerGalaxyGorilla <sascha@netdef.org>
Mon, 31 Aug 2020 09:09:12 +0000 (09:09 +0000)
commitef3e0d04766a11d1b976807c42da8207e887174e
tree23fec16883e5ebdbb60dd6f9685cd28337be13e8
parentf663c5819c7ce9b3b5b37255c9bb7c752eafb60e
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>
bgpd/bgp_attr.c
bgpd/bgp_attr.h
bgpd/bgp_routemap.c
bgpd/bgp_zebra.c
bgpd/bgpd.h
doc/user/routemap.rst