]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_nexthop.c
bgpd: nexthop tracking with labels for vrf-vpn leaking
authorG. Paul Ziemba <paulz@labn.net>
Fri, 23 Mar 2018 23:57:03 +0000 (16:57 -0700)
committerG. Paul Ziemba <paulz@labn.net>
Wed, 4 Apr 2018 17:00:23 +0000 (10:00 -0700)
commit960035b2d9e8300c91276922158b806b043e2e9b
treeb365c75fdeb3bc2ac4ed3ff95f22dd6a56726634
parent3572fb26ca35151b291f335074ae41deb291b466
bgpd: nexthop tracking with labels for vrf-vpn leaking

Routes that have labels must be sent via a nexthop that also has labels.
This change notes whether any path in a nexthop update from zebra contains
labels. If so, then the nexthop is valid for routes that have labels.

If a nexthop update has no labeled paths, then any labeled routes
referencing the nexthop are marked not valid.

Add a route flag BGP_INFO_ANNC_NH_SELF that means "advertise myself
as nexthop when announcing" so that we can track our notion of the
nexthop without revealing it to peers.

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
15 files changed:
bgpd/bgp_evpn.c
bgpd/bgp_fsm.c
bgpd/bgp_mplsvpn.c
bgpd/bgp_nexthop.c
bgpd/bgp_nexthop.h
bgpd/bgp_nht.c
bgpd/bgp_nht.h
bgpd/bgp_route.c
bgpd/bgp_route.h
bgpd/bgp_table.c
bgpd/bgp_table.h
bgpd/bgp_zebra.c
bgpd/bgpd.c
lib/zclient.c
tests/bgpd/test_mpath.c