]> git.proxmox.com Git - mirror_frr.git/blobdiff - eigrpd/eigrp_interface.c
*: Convert zapi->interface_delete to ifp callback
[mirror_frr.git] / eigrpd / eigrp_interface.c
index 9c2ced9ea89d39a33e201649035fbc60589cdb1f..6294c0dd0fb0c59af252fccfdaa1ef095bc82dbf 100644 (file)
@@ -196,6 +196,19 @@ static int eigrp_ifp_down(struct interface *ifp)
 
 static int eigrp_ifp_destroy(struct interface *ifp)
 {
+       if (if_is_up(ifp))
+               zlog_warn("Zebra: got delete of %s, but interface is still up",
+                         ifp->name);
+
+       if (IS_DEBUG_EIGRP(zebra, ZEBRA_INTERFACE))
+               zlog_debug(
+                       "Zebra: interface delete %s index %d flags %llx metric %d mtu %d",
+                       ifp->name, ifp->ifindex, (unsigned long long)ifp->flags,
+                       ifp->metric, ifp->mtu);
+
+       if (ifp->info)
+               eigrp_if_free(ifp->info, INTERFACE_DOWN_BY_ZEBRA);
+
        return 0;
 }