Skip to content

Commit

Permalink
zebra not restore routes:16110
Browse files Browse the repository at this point in the history
Signed-off-by: DennyAgussy <[email protected]>
  • Loading branch information
DennyAgussy committed Aug 29, 2024
1 parent 12a3d5a commit b57adc6
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 @@ -91,8 +91,17 @@ 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 b57adc6

Please sign in to comment.