From ef7bd2a3d5ecab37018f4035391f99c25ddadeab Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 18 Sep 2019 22:26:55 -0400 Subject: *: Switch all zclient->interface_add to interface create callback Switch the zclient->interface_add functionality to have everyone use the interface create callback in lib/if.c Signed-off-by: Donald Sharp --- staticd/static_zebra.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'staticd/static_zebra.c') diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index c18cbed6ba..2a6bfbd601 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -61,16 +61,10 @@ static struct interface *zebra_interface_if_lookup(struct stream *s) } /* Inteface addition message from zebra. */ -static int interface_add(ZAPI_CALLBACK_ARGS) +static int static_ifp_create(struct interface *ifp) { - struct interface *ifp; - - ifp = zebra_interface_add_read(zclient->ibuf, vrf_id); - - if (!ifp) - return 0; - static_ifindex_update(ifp, true); + return 0; } @@ -505,11 +499,6 @@ extern void static_zebra_route_add(struct route_node *rn, zclient, &api); } -static int static_ifp_create(struct interface *ifp) -{ - return 0; -} - static int static_ifp_up(struct interface *ifp) { return 0; @@ -537,7 +526,6 @@ void static_zebra_init(void) zclient_init(zclient, ZEBRA_ROUTE_STATIC, 0, &static_privs); zclient->zebra_capabilities = static_zebra_capabilities; zclient->zebra_connected = zebra_connected; - zclient->interface_add = interface_add; zclient->interface_delete = interface_delete; zclient->interface_up = interface_state_up; zclient->interface_down = interface_state_down; -- cgit v1.2.3