]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: make sure nh is valid for MPLS vpn routes
authorPat Ruddy <pat@voltanet.io>
Thu, 21 Jan 2021 14:16:26 +0000 (14:16 +0000)
committerPat Ruddy <pat@voltanet.io>
Wed, 27 Jan 2021 13:56:45 +0000 (13:56 +0000)
commit4053e9520adebc6a56b8cb940e70f07cdb2d8ef0
tree91b732dddcb512121a6fdc5439f54928383bea17
parentff6fd1cc8a7fb8e4b3bb91e1a639a5c39a280ef1
bgpd: make sure nh is valid for MPLS vpn routes

If we are using a nexthop for a MPLS VPN route make sure the
nexthop is over a labeled path. This new check mirrors the one
in validate_paths (where routes are enabled when a nexthop
becomes reachable). The check is introduced to the code path
where routes are added and the nexthop is looked up.

Signed-off-by: Pat Ruddy <pat@voltanet.io>
bgpd/bgp_fsm.c
bgpd/bgp_mplsvpn.c
bgpd/bgp_nht.c
bgpd/bgp_nht.h
bgpd/bgp_route.c