core: fix compat VLAN interface addition when interface already exists
If the interface already exists, the compat code would fail. Fix that and clean up the function. Also double-check that an existing VLAN interface that has the name we expect also has the master and VLAN ID we expect.
This commit is contained in:
@@ -1038,6 +1038,7 @@ nm_utils_is_uuid (const char *str)
|
||||
char *
|
||||
nm_utils_new_vlan_name (const char *parent_iface, guint32 vlan_id)
|
||||
{
|
||||
/* Basically VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD */
|
||||
return g_strdup_printf ("%s.%d", parent_iface, vlan_id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user