Skip to content

Commit

Permalink
zebra: add the link interface information on interface updates
Browse files Browse the repository at this point in the history
There are cases where either link information is not present at
interface creation or link information changed. handle this
situation.

Signed-off-by: Philippe.Guibert <philippe.guibert@6wind.com>

zebra dd link
  • Loading branch information
pguibert6WIND committed Apr 30, 2021
1 parent c962ab9 commit ecffe91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zebra/if_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,9 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)

memcpy(old_hw_addr, ifp->hw_addr, INTERFACE_HWADDR_MAX);

/* Update link. */
zebra_if_update_link(ifp, link_ifindex, ns_id);

netlink_interface_update_hw_addr(tb, ifp);

if (if_is_no_ptm_operative(ifp)) {
Expand Down

0 comments on commit ecffe91

Please sign in to comment.