]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_zebra.c
Merge pull request #5081 from pguibert6WIND/show_brief_doc
[mirror_frr.git] / ospf6d / ospf6_zebra.c
index d809cff6c5d850ab9d6266d5e3b7bb2f5f42c9fe..d8a6a39e1e9fd7de3faabc175580ed32c8cee0e0 100644 (file)
@@ -97,44 +97,6 @@ void ospf6_zebra_no_redistribute(int type)
                                        AFI_IP6, type, 0, VRF_DEFAULT);
 }
 
-static int ospf6_zebra_if_del(ZAPI_CALLBACK_ARGS)
-{
-       struct interface *ifp;
-
-       if (!(ifp = zebra_interface_state_read(zclient->ibuf, vrf_id)))
-               return 0;
-
-       if (if_is_up(ifp))
-               zlog_warn("Zebra: got delete of %s, but interface is still up",
-                         ifp->name);
-
-       if (IS_OSPF6_DEBUG_ZEBRA(RECV))
-               zlog_debug("Zebra Interface delete: %s index %d mtu %d",
-                          ifp->name, ifp->ifindex, ifp->mtu6);
-
-       if_set_index(ifp, IFINDEX_INTERNAL);
-       return 0;
-}
-
-static int ospf6_zebra_if_state_update(ZAPI_CALLBACK_ARGS)
-{
-       struct interface *ifp;
-
-       ifp = zebra_interface_state_read(zclient->ibuf, vrf_id);
-       if (ifp == NULL)
-               return 0;
-
-       if (IS_OSPF6_DEBUG_ZEBRA(RECV))
-               zlog_debug(
-                       "Zebra Interface state change: "
-                       "%s index %d flags %llx metric %d mtu %d bandwidth %d",
-                       ifp->name, ifp->ifindex, (unsigned long long)ifp->flags,
-                       ifp->metric, ifp->mtu6, ifp->bandwidth);
-
-       ospf6_interface_state_update(ifp);
-       return 0;
-}
-
 static int ospf6_zebra_if_address_update_add(ZAPI_CALLBACK_ARGS)
 {
        struct connected *c;
@@ -570,9 +532,6 @@ void ospf6_zebra_init(struct thread_master *master)
        zclient_init(zclient, ZEBRA_ROUTE_OSPF6, 0, &ospf6d_privs);
        zclient->zebra_connected = ospf6_zebra_connected;
        zclient->router_id_update = ospf6_router_id_update_zebra;
-       zclient->interface_delete = ospf6_zebra_if_del;
-       zclient->interface_up = ospf6_zebra_if_state_update;
-       zclient->interface_down = ospf6_zebra_if_state_update;
        zclient->interface_address_add = ospf6_zebra_if_address_update_add;
        zclient->interface_address_delete =
                ospf6_zebra_if_address_update_delete;