When creating a sub-int from Linux, ensure that the tap subint is set admin-up

This commit is contained in:
Pim van Pelt
2021-12-24 20:05:39 +00:00
parent fffb1e892a
commit b659de9266
2 changed files with 2 additions and 0 deletions

View File

@ -674,6 +674,8 @@ lcp_nl_link_add_vlan (struct rtnl_link *rl)
lcpm->lcp_auto_subint = old_lcp_auto_subint;
return NULL;
}
// Always keep sub-int on the TAP up
vnet_sw_interface_admin_up (vnm, host_sw_if_index);
NL_NOTICE ("link_add_vlan: Creating LCP for host %U phy %U name %s idx %d",
format_vnet_sw_if_index_name, vnm, host_sw_if_index,
format_vnet_sw_if_index_name, vnm, phy_sw_if_index,