core: automatically create VLAN interfaces when needed

This commit is contained in:
Dan Williams
2012-02-12 14:48:44 -06:00
parent 13c8d2c51e
commit b35afe4d0f
3 changed files with 130 additions and 3 deletions

View File

@@ -1005,3 +1005,9 @@ nm_utils_is_uuid (const char *str)
return (num_dashes == 4) && (p - str == 36);
}
char *
nm_utils_new_vlan_name (const char *master_iface, guint32 vlan_id)
{
return g_strdup_printf ("%s.%d", master_iface, vlan_id);
}