]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: add LP_TYPE_BGP_L3VPN_BIND label type
authorLouis Scalbert <louis.scalbert@6wind.com>
Tue, 2 May 2023 14:30:20 +0000 (16:30 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 16 Jun 2023 08:54:58 +0000 (10:54 +0200)
commit73e9ce89b909419728825723b60435d92a0e2723
treebfc9767ac4cb9582d11cce9d3f9d0f8ec7c0b724
parentcd0e9bfbc43e5cd30c90a4ea16e1e810f94a7477
bgpd: add LP_TYPE_BGP_L3VPN_BIND label type

Redistributing mpls vpn prefixes with a new label
requires picking up unused MPLS local labels.

Today, there is an MPLS label pool which is owned
by the zebra daemon. BGP gets a chunk of labels
that are shared with the multiple usage of the BGP
daemon. A label type attribute is used whenever
BGP needs a new label value.

The 'LP_TYPE_BGP_L3VPN_BIND' label type will be used
to allocate the MPLS labels that will be bound to
the original next-hop, and label value of an L3VPN
update.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_labelpool.c
bgpd/bgp_labelpool.h