]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Allow 'no ip pim sm' to not turn off igmp
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 Nov 2016 17:09:14 +0000 (12:09 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:15 +0000 (20:26 -0500)
When we receive a 'no ip pim sm' for an interface
that has both pim and igmp on it, only turn
off pim.

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

index 84350676a7963f5a816515018e2d4d81ad410c11..c28aad03840247de47c3dba4252d84d2e69d791a 100644 (file)
@@ -4315,12 +4315,6 @@ pim_cmd_interface_delete (struct interface *ifp)
 
   pim_if_membership_clear(ifp);
 
-  /*
-    pim_if_addr_del_all() removes all sockets from
-    pim_ifp->igmp_socket_list.
-   */
-  pim_if_addr_del_all(ifp);
-
   /*
     pim_sock_delete() removes all neighbors from
     pim_ifp->pim_neighbor_list.
@@ -4328,6 +4322,7 @@ pim_cmd_interface_delete (struct interface *ifp)
   pim_sock_delete(ifp, "pim unconfigured on interface");
 
   if (!PIM_IF_TEST_IGMP(pim_ifp->options)) {
+    pim_if_addr_del_all(ifp);
     pim_if_delete(ifp);
   }