]> git.proxmox.com Git - mirror_frr.git/blobdiff - nhrpd/nhrp_interface.c
*: Convert from ->interface_up to the interface callback
[mirror_frr.git] / nhrpd / nhrp_interface.c
index 5d47d0ae8aad7c1fbadbdcc9a9f93350875e1715..29e61447795701644e7045d981538bb822e51dad 100644 (file)
@@ -326,14 +326,8 @@ int nhrp_interface_delete(ZAPI_CALLBACK_ARGS)
        return 0;
 }
 
-int nhrp_interface_up(ZAPI_CALLBACK_ARGS)
+int nhrp_ifp_up(struct interface *ifp)
 {
-       struct interface *ifp;
-
-       ifp = zebra_interface_state_read(zclient->ibuf, vrf_id);
-       if (ifp == NULL)
-               return 0;
-
        debugf(NHRP_DEBUG_IF, "if-up: %s", ifp->name);
        nhrp_interface_update_nbma(ifp);
 
@@ -430,11 +424,6 @@ void nhrp_interface_set_source(struct interface *ifp, const char *ifname)
        nhrp_interface_update_nbma(ifp);
 }
 
-int nhrp_ifp_up(struct interface *ifp)
-{
-       return 0;
-}
-
 int nhrp_ifp_down(struct interface *ifp)
 {
        return 0;