]> git.puffer.fish Git - mirror/frr.git/commit
bgpd, lib, zebra: Implement handling of BGP-Prefix-SID label Index
authorVivek Venkatraman <vivek@cumulusnetworks.com>
Thu, 9 Mar 2017 17:55:54 +0000 (12:55 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 6 Apr 2017 14:32:07 +0000 (10:32 -0400)
commit28d58fd7b166836029656c29ad8ed9a9e8a744ac
tree549a60873cfe73d04c055447fc599e667cb1d71c
parent6cf48acc1c17d590da4101fa5e0a2764cb931a9c
bgpd, lib, zebra: Implement handling of BGP-Prefix-SID label Index

Implement BGP Prefix-SID IETF draft to be able to signal a labeled-unicast
prefix with a label index (segment ID). This makes it easier to deploy
global MPLS labels with BGP, even without other aspects of Segment Routing
implemented.

This patch implements the handling of the BGP-Prefix-SID Label Index
attribute. When received from a peer and the index is acceptable, the local
label is picked up from the SRGB and is programmed as the incoming label as
well as advertised to peers. If the index is not acceptable, no local label
is assigned. The outgoing label will always be the one advertised by the
downstream neighbor.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
bgpd/bgp_label.c
bgpd/bgp_label.h
bgpd/bgp_route.c
lib/mpls.h
lib/zebra.h
zebra/zebra_mpls.c
zebra/zebra_mpls.h
zebra/zebra_mpls_null.c
zebra/zserv.c