summaryrefslogtreecommitdiffstats
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-02 16:57:45 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-02 16:57:45 +0100
commit344cbf76bc3c91493e90cdc9f82345fc46ef72ed (patch)
tree2e00e1761ac8475483bc801a46cca0715bb554c4 /pimd/pim_cmd.c
parentpimd: Hide 'ip multicast-routing' command (diff)
downloadfrr-344cbf76bc3c91493e90cdc9f82345fc46ef72ed.tar.xz
frr-344cbf76bc3c91493e90cdc9f82345fc46ef72ed.zip
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>
Diffstat (limited to '')
-rw-r--r--pimd/pim_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index 5dbf016c8..3236eb07b 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -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);