mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-01 12:47:16 +00:00
Merge pull request #9789 from idryzhov/if-ll-type
lib: set type for newly created interfaces
This commit is contained in:
commit
e2c3eaddd5
@ -1832,6 +1832,8 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
|
||||
/* Update link. */
|
||||
zebra_if_update_link(ifp, link_ifindex, ns_id);
|
||||
|
||||
ifp->ll_type =
|
||||
netlink_to_zebra_link_type(ifi->ifi_type);
|
||||
netlink_interface_update_hw_addr(tb, ifp);
|
||||
|
||||
/* Inform clients, install any configured addresses. */
|
||||
@ -1899,6 +1901,8 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
|
||||
/* Update link. */
|
||||
zebra_if_update_link(ifp, link_ifindex, ns_id);
|
||||
|
||||
ifp->ll_type =
|
||||
netlink_to_zebra_link_type(ifi->ifi_type);
|
||||
netlink_interface_update_hw_addr(tb, ifp);
|
||||
|
||||
if (if_is_no_ptm_operative(ifp)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user