interface: use link executor on vlans too

This commit is contained in:
Ariadne Conill 2020-08-24 03:06:32 -06:00
parent 8e7c935cdf
commit 1384b38c78
2 changed files with 20 additions and 2 deletions

View file

@ -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