]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_zebra.c
bgpd: use nexthop interface when adding LSP in BGP MPLSVPN
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 16 Feb 2023 09:39:40 +0000 (10:39 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 9 May 2023 19:00:57 +0000 (21:00 +0200)
commit1c6aa043efb5f3c2632e59c4594536b318c51fdc
tree0233764d311dd46925a4768b4c414f31e06fbc60
parent577be36a41be45d7e78d6e9a38211a9aa0732b29
bgpd: use nexthop interface when adding LSP in BGP MPLSVPN

BGP MPLSVPN next hop label allocation was using only the next-hop
IP address. As MPLSVPN contexts rely on bnc contexts, the real
nexthop interface is known, and the LSP entry to enter can apply
to the specific interface. To illustrate, the BGP service is able
to handle the following two iproute2 commands:

 > ip -f mpls route add 105 via inet 192.0.2.45 dev r1-eth1
 > ip -f mpls route add 105 via inet 192.0.2.46 dev r1-eth2

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_labelpool.c
bgpd/bgp_labelpool.h
bgpd/bgp_mplsvpn.c
bgpd/bgp_zebra.c
bgpd/bgp_zebra.h