diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-05 17:31:29 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-31 11:31:41 +0100 |
commit | 1ee0a2df0d7f7052485b455966757be2a5562a1d (patch) | |
tree | eb5f68d948933a442db81ff109003b7588b42f80 /bgpd/bgp_nht.h | |
parent | bgpd: Add some debugs to note when we are not talking to zebra (diff) | |
download | frr-1ee0a2df0d7f7052485b455966757be2a5562a1d.tar.xz frr-1ee0a2df0d7f7052485b455966757be2a5562a1d.zip |
bgpd: Allow registration of nexthops after zebra connection
If we attempt to register nexthops before we have the zebra
connection, they will not be installed. After we have noticed
that we are up, re-install them.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_nht.h')
-rw-r--r-- | bgpd/bgp_nht.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_nht.h b/bgpd/bgp_nht.h index 0cc045a06..96dd91559 100644 --- a/bgpd/bgp_nht.h +++ b/bgpd/bgp_nht.h @@ -81,5 +81,11 @@ extern void bgp_cleanup_nexthops(struct bgp *bgp); */ extern void path_nh_map(struct bgp_path_info *path, struct bgp_nexthop_cache *bnc, bool make); +/* + * When we actually have the connection to + * the zebra daemon, we need to reregister + * any nexthops we may have sitting around + */ +extern void bgp_nht_register_nexthops(struct bgp *bgp); #endif /* _BGP_NHT_H */ |