diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-02-07 19:55:00 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-02-07 19:55:00 -0500 |
| commit | 35e5ef55f1ec3f6e3fa78c268b2ed2a392b17d23 (patch) | |
| tree | 1b20aa10208bed667eaa277308f203347c398edd /pimd/pim_cmd.c | |
| parent | 16cdf5ddbc5c92f0dc43d9243a60a7258c67e68d (diff) | |
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>
Diffstat (limited to 'pimd/pim_cmd.c')
| -rw-r--r-- | pimd/pim_cmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 01cb35177e..90c0257483 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -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 */ } |
