summaryrefslogtreecommitdiffstats
path: root/pbrd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-09-19 05:07:44 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-09-19 19:34:06 +0200
commitddbf3e60604019d4b38d51226700e2244cc531b6 (patch)
treed3403922091432832dfffe8b86e8c6610691e177 /pbrd
parent*: Switch all zclient->interface_add to interface create callback (diff)
downloadfrr-ddbf3e60604019d4b38d51226700e2244cc531b6.tar.xz
frr-ddbf3e60604019d4b38d51226700e2244cc531b6.zip
*: Convert from ->interface_up to the interface callback
For all the places we have a zclient->interface_up convert them to use the interface ifp_up callback instead. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pbrd')
-rw-r--r--pbrd/pbr_zebra.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c
index af4b1e832..e82bed5ed 100644
--- a/pbrd/pbr_zebra.c
+++ b/pbrd/pbr_zebra.c
@@ -126,12 +126,8 @@ static int interface_address_delete(ZAPI_CALLBACK_ARGS)
return 0;
}
-static int interface_state_up(ZAPI_CALLBACK_ARGS)
+int pbr_ifp_up(struct interface *ifp)
{
- struct interface *ifp;
-
- ifp = zebra_interface_state_read(zclient->ibuf, vrf_id);
-
DEBUGD(&pbr_dbg_zebra,
"%s: %s is up", __PRETTY_FUNCTION__, ifp->name);
@@ -441,7 +437,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_up = interface_state_up;
zclient->interface_down = interface_state_down;
zclient->interface_address_add = interface_address_add;
zclient->interface_address_delete = interface_address_delete;
@@ -572,11 +567,6 @@ void pbr_send_pbr_map(struct pbr_map_sequence *pbrms,
zclient_send_message(zclient);
}
-int pbr_ifp_up(struct interface *ifp)
-{
- return 0;
-}
-
int pbr_ifp_down(struct interface *ifp)
{
return 0;