Skip to content

Commit

Permalink
zebra: do not read speed if underlying vrf not ready
Browse files Browse the repository at this point in the history
if interface is created at config, but the underlying vrf is not ready,
then prevent from reading speed and updating the client with that.

Signed-off-by: Philippe Guibert <[email protected]>
  • Loading branch information
pguibert6WIND committed Dec 15, 2021
1 parent 28328c2 commit fba380d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebra/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ static int if_zebra_speed_update(struct thread *thread)

zif->speed_update = NULL;

if (!ifp->vrf
|| ifp->vrf->vrf_id == VRF_UNKNOWN)
return 1;

new_speed = kernel_get_speed(ifp, &error);

/* error may indicate vrf not available or
Expand Down

0 comments on commit fba380d

Please sign in to comment.