pimd: Fix 'show ip pim state' command

The 'show ip pim state' command was not
working quite correctly from when
we moved over to the new vtysh-grammar.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-03-02 10:57:45 -05:00
parent b8d16be287
commit 344cbf76bc

View File

@ -2632,12 +2632,12 @@ DEFUN (show_ip_pim_state,
if (uj)
argc--;
if (argc == 5)
if (argc == 6)
{
src_or_group = argv[4]->arg;
group = argv[5]->arg;
}
else if (argc == 4)
else if (argc == 5)
src_or_group = argv[4]->arg;
pim_show_state(vty, src_or_group, group, uj);