summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nht.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-11-06 21:55:36 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-11-07 20:11:45 +0100
commit1ea03b905db2ee97204517057d3fd963cf7d3b6c (patch)
tree6786e5f4c94b8499e9ff5de5a0906c6b7dfb7620 /bgpd/bgp_nht.h
parentMerge pull request #3162 from pguibert6WIND/vpn_route_map_issue (diff)
downloadfrr-1ea03b905db2ee97204517057d3fd963cf7d3b6c.tar.xz
frr-1ea03b905db2ee97204517057d3fd963cf7d3b6c.zip
bgpd: Late registration of Extended Nexthop should allow RA's to happen
When we have a late registration of the Extended Nexthop capability for BGP and the peer already has nexthop information stored, go through and enable RA on the important interfaces. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_nht.h')
-rw-r--r--bgpd/bgp_nht.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/bgpd/bgp_nht.h b/bgpd/bgp_nht.h
index 96dd91559..7daae93b2 100644
--- a/bgpd/bgp_nht.h
+++ b/bgpd/bgp_nht.h
@@ -88,4 +88,13 @@ extern void path_nh_map(struct bgp_path_info *path,
*/
extern void bgp_nht_register_nexthops(struct bgp *bgp);
+/*
+ * When we have the the PEER_FLAG_CAPABILITY_ENHE flag
+ * set on a peer *after* it has been brought up we need
+ * to notice and setup the interface based RA,
+ * this code can walk the registered nexthops and
+ * register the important ones with zebra for RA.
+ */
+extern void bgp_nht_register_enhe_capability_interfaces(struct peer *peer);
+
#endif /* _BGP_NHT_H */