diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2021-04-29 11:58:15 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2021-04-30 08:05:01 +0200 |
commit | ecffe9167b1debd0c7e3a632e5b1a5e834bb4ebe (patch) | |
tree | d7b07f957b65bd402811aef2fae7e6e8a641ecee /zebra | |
parent | Merge pull request #8570 from qlyoung/revert-ringbuf-readv (diff) | |
download | frr-ecffe9167b1debd0c7e3a632e5b1a5e834bb4ebe.tar.xz frr-ecffe9167b1debd0c7e3a632e5b1a5e834bb4ebe.zip |
zebra: add the link interface information on interface updates
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
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/if_netlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 6aaf9d94f..e6e86feb4 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -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)) { |