mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
staticd: Handle static routes appropriately
Signed-off-by: DennyAgussy <gkruparaju@msystechnologies.com>
This commit is contained in:
parent
91ebab35f2
commit
157a3cbe9a
|
@ -94,7 +94,16 @@ static int static_ifp_destroy(struct interface *ifp)
|
|||
|
||||
static int interface_address_add(ZAPI_CALLBACK_ARGS)
|
||||
{
|
||||
zebra_interface_address_read(cmd, zclient->ibuf, vrf_id);
|
||||
struct interface *ifp;
|
||||
struct connected *ifc;
|
||||
|
||||
ifc = zebra_interface_address_read(cmd, zclient->ibuf, vrf_id);
|
||||
|
||||
ifp = ifc->ifp;
|
||||
|
||||
/* route walk */
|
||||
if (CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE))
|
||||
static_ifindex_update(ifp, true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue