summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nht.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-10-05 15:43:28 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-10-31 11:31:41 +0100
commitbb4ef1aec80227d318e48ed65c261b812e356f1b (patch)
tree00506354697ffa88f2a23cc46484abb815485ce0 /bgpd/bgp_nht.c
parentzebra: Add counting to nexthop register/unregister events (diff)
downloadfrr-bb4ef1aec80227d318e48ed65c261b812e356f1b.tar.xz
frr-bb4ef1aec80227d318e48ed65c261b812e356f1b.zip
bgpd: Add some debugs to note when we are not talking to zebra
Allow some debug notification when we are unable to talk to zebra due to the connection not being there yet. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_nht.c')
-rw-r--r--bgpd/bgp_nht.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bgpd/bgp_nht.c b/bgpd/bgp_nht.c
index e764860bc..2e7f17fda 100644
--- a/bgpd/bgp_nht.c
+++ b/bgpd/bgp_nht.c
@@ -587,8 +587,12 @@ static void sendmsg_zebra_rnh(struct bgp_nexthop_cache *bnc, int command)
return;
/* Don't try to register if Zebra doesn't know of this instance. */
- if (!IS_BGP_INST_KNOWN_TO_ZEBRA(bnc->bgp))
+ if (!IS_BGP_INST_KNOWN_TO_ZEBRA(bnc->bgp)) {
+ if (BGP_DEBUG(zebra, ZEBRA))
+ zlog_debug("%s: No zebra instance to talk to, not installing NHT entry",
+ __PRETTY_FUNCTION__);
return;
+ }
p = &(bnc->node->p);
if ((command == ZEBRA_NEXTHOP_REGISTER