]> git.puffer.fish Git - mirror/frr.git/commitdiff
pim: Fix 'no ip pim sm'
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 1 Jun 2016 15:26:29 +0000 (11:26 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 1 Jun 2016 15:40:00 +0000 (11:40 -0400)
The 'no ip pim sm' command was not being accepted.
Additionally fix the help output

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_cmd.c
pimd/pim_cmd.h

index 995f074aa1a42fe97eccfc7fe17b8818bbd4dc46..d60967c377e8c801520864a61564784838e83cbc 100644 (file)
@@ -3273,7 +3273,7 @@ DEFUN (interface_ip_pim_sm,
        "ip pim sm",
        IP_STR
        PIM_STR
-       IFACE_PIM_STR)
+       IFACE_PIM_SM_STR)
 {
   struct interface *ifp;
 
@@ -3344,7 +3344,7 @@ DEFUN (interface_no_ip_pim_sm,
        NO_STR
        IP_STR
        PIM_STR
-       IFACE_PIM_STR)
+       IFACE_PIM_SM_STR)
 {
   struct interface *ifp;
 
@@ -4917,7 +4917,7 @@ void pim_cmd_init()
   install_element (INTERFACE_NODE, &interface_ip_pim_ssm_cmd);
   install_element (INTERFACE_NODE, &interface_no_ip_pim_ssm_cmd);
   install_element (INTERFACE_NODE, &interface_ip_pim_sm_cmd);
-  install_element (INTERFACE_NODE, &interface_no_ip_pim_ssm_cmd);
+  install_element (INTERFACE_NODE, &interface_no_ip_pim_sm_cmd);
   install_element (INTERFACE_NODE, &interface_ip_pim_drprio_cmd);
   install_element (INTERFACE_NODE, &interface_no_ip_pim_drprio_cmd);
   install_element (INTERFACE_NODE, &interface_ip_pim_hello_cmd);
index a1cb58161f8acaa8ddf7d4c05e4c562f477d708b..26191cd0b6133094880ee429f639dc050d12bee4 100644 (file)
@@ -30,6 +30,7 @@
 #define CONF_SSMPINGD_STR                      "Enable ssmpingd operation\n"
 #define SHOW_SSMPINGD_STR                      "ssmpingd operation\n"
 #define IFACE_PIM_STR                          "Enable PIM SSM operation\n"
+#define IFACE_PIM_SM_STR                       "Enable PIM SM operation\n"
 #define IFACE_PIM_HELLO_STR                    "Hello Interval\n"
 #define IFACE_PIM_HELLO_TIME_STR               "Time in seconds for Hello Interval\n"
 #define IFACE_PIM_HELLO_HOLD_STR               "Time in seconds for Hold Interval\n"