Skip to content
Permalink
Browse files

pimd: Add some debugs for when local membership fails

When we fail to add a local membership add some additional debugs
so that we can have a bit more information on when something goes
bad.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
  • Loading branch information...
donaldsharp committed Nov 16, 2018
1 parent d482ae5 commit 78b0c6bfa704237907444a89abb62dd5d062909b
Showing with 17 additions and 2 deletions.
  1. +17 −2 pimd/pim_ifchannel.c
@@ -1012,10 +1012,21 @@ int pim_ifchannel_local_membership_add(struct interface *ifp,

/* PIM enabled on interface? */
pim_ifp = ifp->info;
if (!pim_ifp)
if (!pim_ifp) {
if (PIM_DEBUG_EVENTS)
zlog_debug("%s:%s Expected pim interface setup for %s",
__PRETTY_FUNCTION__,
pim_str_sg_dump(sg), ifp->name);
return 0;
if (!PIM_IF_TEST_PIM(pim_ifp->options))
}

if (!PIM_IF_TEST_PIM(pim_ifp->options)) {
if (PIM_DEBUG_EVENTS)
zlog_debug("%s:%s PIM is not configured on this interface %s",
__PRETTY_FUNCTION__,
pim_str_sg_dump(sg), ifp->name);
return 0;
}

pim = pim_ifp->pim;

@@ -1033,6 +1044,10 @@ int pim_ifchannel_local_membership_add(struct interface *ifp,

ch = pim_ifchannel_add(ifp, sg, 0, PIM_UPSTREAM_FLAG_MASK_SRC_IGMP);
if (!ch) {
if (PIM_DEBUG_EVENTS)
zlog_debug("%s:%s Unable to add ifchannel",
__PRETTY_FUNCTION__,
pim_str_sg_dump(sg));
return 0;
}

0 comments on commit 78b0c6b

Please sign in to comment.
You can’t perform that action at this time.