pimd: Modify show ip pim assert to only show interesting bits

`show ip pim assert` shows S,G ifchannel information even when
there is no information available about the assert process.

Fix the code to not dump non-interesting cases.

Fixes: 10462
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-02-07 19:55:00 -05:00
parent 16cdf5ddbc
commit 35e5ef55f1
2 changed files with 4 additions and 0 deletions

View File

@ -452,6 +452,7 @@ cause great confusion.
.. clicmd:: show ip pim assert
Display information about asserts in the PIM system for S,G mroutes.
This command does not show S,G Channel states that in a NOINFO state.
.. clicmd:: show ip pim assert-internal

View File

@ -143,6 +143,9 @@ static void pim_show_assert(struct pim_instance *pim, struct vty *vty)
continue;
RB_FOREACH (ch, pim_ifchannel_rb, &pim_ifp->ifchannel_rb) {
if (ch->ifassert_state == PIM_IFASSERT_NOINFO)
continue;
pim_show_assert_helper(vty, pim_ifp, ch, now);
} /* scan interface channels */
}