interface: use link executor on vlans too
This commit is contained in:
parent
8e7c935cdf
commit
1384b38c78
2 changed files with 20 additions and 2 deletions
|
@ -63,7 +63,11 @@ lif_interface_init(struct lif_interface *interface, const char *ifname)
|
|||
|
||||
interface->ifname = strdup(ifname);
|
||||
|
||||
lif_interface_use_executor(interface, strchr(ifname, '.') == NULL ? "link" : "vlan");
|
||||
lif_interface_use_executor(interface, "link");
|
||||
|
||||
/* keep the 'vlan' executor as a config hint for backwards compatibility */
|
||||
if (strchr(ifname, '.') != NULL)
|
||||
lif_interface_use_executor(interface, "vlan");
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue