@@ -40,7 +40,6 @@ static void ifc2kaddr(struct interface *, struct connected *,
4040static int ldp_zebra_send_mpls_labels (int , struct kroute * );
4141static int ldp_router_id_update (ZAPI_CALLBACK_ARGS );
4242static int ldp_interface_delete (ZAPI_CALLBACK_ARGS );
43- static int ldp_interface_status_change (ZAPI_CALLBACK_ARGS );
4443static int ldp_interface_address_add (ZAPI_CALLBACK_ARGS );
4544static int ldp_interface_address_delete (ZAPI_CALLBACK_ARGS );
4645static int ldp_zebra_read_route (ZAPI_CALLBACK_ARGS );
@@ -329,19 +328,14 @@ ldp_interface_status_change_helper(struct interface *ifp)
329328
330329 return (0 );
331330}
332- static int
333- ldp_interface_status_change (ZAPI_CALLBACK_ARGS )
334- {
335- struct interface * ifp ;
336331
337- /*
338- * zebra_interface_state_read() updates interface structure in
339- * iflist.
340- */
341- ifp = zebra_interface_state_read (zclient -> ibuf , vrf_id );
342- if (ifp == NULL )
343- return (0 );
332+ static int ldp_ifp_up (struct interface * ifp )
333+ {
334+ return ldp_interface_status_change_helper (ifp );
335+ }
344336
337+ static int ldp_ifp_down (struct interface * ifp )
338+ {
345339 return ldp_interface_status_change_helper (ifp );
346340}
347341
@@ -535,16 +529,6 @@ ldp_zebra_connected(struct zclient *zclient)
535529
536530extern struct zebra_privs_t ldpd_privs ;
537531
538- static int ldp_ifp_up (struct interface * ifp )
539- {
540- return ldp_interface_status_change_helper (ifp );
541- }
542-
543- static int ldp_ifp_down (struct interface * ifp )
544- {
545- return 0 ;
546- }
547-
548532static int ldp_ifp_destroy (struct interface * ifp )
549533{
550534 return 0 ;
@@ -564,7 +548,6 @@ ldp_zebra_init(struct thread_master *master)
564548 zclient -> zebra_connected = ldp_zebra_connected ;
565549 zclient -> router_id_update = ldp_router_id_update ;
566550 zclient -> interface_delete = ldp_interface_delete ;
567- zclient -> interface_down = ldp_interface_status_change ;
568551 zclient -> interface_address_add = ldp_interface_address_add ;
569552 zclient -> interface_address_delete = ldp_interface_address_delete ;
570553 zclient -> redistribute_route_add = ldp_zebra_read_route ;
0 commit comments