Skip to content

Commit

Permalink
staticd: Handle static routes appropriately
Browse files Browse the repository at this point in the history
Signed-off-by: DennyAgussy <[email protected]>
  • Loading branch information
DennyAgussy committed Feb 2, 2025
1 parent 91ebab3 commit 157a3cb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion staticd/static_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 157a3cb

Please sign in to comment.