summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-10-05 17:31:29 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-10-31 11:31:41 +0100
commit1ee0a2df0d7f7052485b455966757be2a5562a1d (patch)
treeeb5f68d948933a442db81ff109003b7588b42f80 /bgpd/bgp_zebra.c
parentbgpd: Add some debugs to note when we are not talking to zebra (diff)
downloadfrr-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_zebra.c')
-rw-r--r--bgpd/bgp_zebra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index 0b79a9ee1..50b790eb1 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -1837,6 +1837,8 @@ void bgp_zebra_instance_register(struct bgp *bgp)
*/
if (bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT && is_evpn_enabled())
bgp_zebra_advertise_all_vni(bgp, 1);
+
+ bgp_nht_register_nexthops(bgp);
}
/* Deregister this instance with Zebra. Invoked upon the instance