summaryrefslogtreecommitdiffstats
path: root/pbrd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-09-19 15:40:57 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-09-19 19:34:06 +0200
commit3c3c325203848994bae83a85cb606d4e4deeeb25 (patch)
treeac8447eb389883d0f009599cb4ea460401f5af8b /pbrd
parent*: Convert interface_down to interface down callback (diff)
downloadfrr-3c3c325203848994bae83a85cb606d4e4deeeb25.tar.xz
frr-3c3c325203848994bae83a85cb606d4e4deeeb25.zip
*: Convert zapi->interface_delete to ifp callback
Convert the callback of the interface_delete to the new ifp callback. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pbrd')
-rw-r--r--pbrd/pbr_zebra.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c
index eadc39264..2bba83738 100644
--- a/pbrd/pbr_zebra.c
+++ b/pbrd/pbr_zebra.c
@@ -72,24 +72,11 @@ int pbr_ifp_create(struct interface *ifp)
return 0;
}
-static int interface_delete(ZAPI_CALLBACK_ARGS)
+int pbr_ifp_destroy(struct interface *ifp)
{
- struct interface *ifp;
- struct stream *s;
-
- s = zclient->ibuf;
- /* zebra_interface_state_read () updates interface structure in iflist
- */
- ifp = zebra_interface_state_read(s, vrf_id);
-
- if (ifp == NULL)
- return 0;
-
DEBUGD(&pbr_dbg_zebra,
"%s: %s", __PRETTY_FUNCTION__, ifp->name);
- if_set_index(ifp, IFINDEX_INTERNAL);
-
return 0;
}
@@ -432,7 +419,6 @@ void pbr_zebra_init(void)
zclient_init(zclient, ZEBRA_ROUTE_PBR, 0, &pbr_privs);
zclient->zebra_connected = zebra_connected;
- zclient->interface_delete = interface_delete;
zclient->interface_address_add = interface_address_add;
zclient->interface_address_delete = interface_address_delete;
zclient->route_notify_owner = route_notify_owner;
@@ -561,8 +547,3 @@ void pbr_send_pbr_map(struct pbr_map_sequence *pbrms,
zclient_send_message(zclient);
}
-
-int pbr_ifp_destroy(struct interface *ifp)
-{
- return 0;
-}