diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-06 15:55:36 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-07 14:11:45 -0500 | 
| commit | 1ea03b905db2ee97204517057d3fd963cf7d3b6c (patch) | |
| tree | 6786e5f4c94b8499e9ff5de5a0906c6b7dfb7620 /bgpd/bgp_nht.h | |
| parent | 8dfa7e4680c3d8f2606d7fdef77df0e9cb44c645 (diff) | |
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.h | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/bgpd/bgp_nht.h b/bgpd/bgp_nht.h index 96dd915596..7daae93b25 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 */  | 
