]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: When deleting last intf from an OIL don't delete the mroute
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 22 Mar 2017 14:07:18 +0000 (10:07 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 23 Mar 2017 16:59:17 +0000 (12:59 -0400)
In certain conditions when we are deleting the interface
from an OIL do not delete the mroute.  That decision
should be made by the state machine.

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

index bf2c838abb21b167b9ac136342593738a99e4d62..679ead1e0dfb4a8bdbc7d8a13918771346f53599 100644 (file)
@@ -866,22 +866,6 @@ static int del_oif(struct channel_oil *channel_oil,
 
   --channel_oil->oil_size;
 
-  if (channel_oil->oil_size < 1) {
-    if (pim_mroute_del(channel_oil, __PRETTY_FUNCTION__)) {
-      if (PIM_DEBUG_MROUTE)
-       {
-         /* just log a warning in case of failure */
-         char group_str[INET_ADDRSTRLEN];
-         char source_str[INET_ADDRSTRLEN];
-         pim_inet4_dump("<group?>", channel_oil->oil.mfcc_mcastgrp, group_str, sizeof(group_str));
-         pim_inet4_dump("<source?>", channel_oil->oil.mfcc_origin, source_str, sizeof(source_str));
-         zlog_debug("%s %s: failure removing OIL for channel (S,G)=(%s,%s)",
-                    __FILE__, __PRETTY_FUNCTION__,
-                    source_str, group_str);
-       }
-    }
-  }
-
   if (PIM_DEBUG_MROUTE) {
     char group_str[INET_ADDRSTRLEN]; 
     char source_str[INET_ADDRSTRLEN];