mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 22:30:11 +01:00
cli: initialize interface-name for new team connections in editor
This commit is contained in:
parent
7698d5dfc0
commit
472ee8104d
1 changed files with 5 additions and 1 deletions
|
|
@ -6857,11 +6857,15 @@ editor_init_new_connection (NmCli *nmc, NMConnection *connection)
|
|||
return;
|
||||
nm_connection_add_setting (connection, base_setting);
|
||||
|
||||
/* Set a sensible bond/bridge interface name by default */
|
||||
/* Set a sensible bond/team/bridge interface name by default */
|
||||
if (g_strcmp0 (con_type, NM_SETTING_BOND_SETTING_NAME) == 0)
|
||||
g_object_set (NM_SETTING_BOND (base_setting),
|
||||
NM_SETTING_BOND_INTERFACE_NAME, "nm-bond",
|
||||
NULL);
|
||||
if (g_strcmp0 (con_type, NM_SETTING_TEAM_SETTING_NAME) == 0)
|
||||
g_object_set (NM_SETTING_TEAM (base_setting),
|
||||
NM_SETTING_TEAM_INTERFACE_NAME, "nm-team",
|
||||
NULL);
|
||||
if (g_strcmp0 (con_type, NM_SETTING_BRIDGE_SETTING_NAME) == 0)
|
||||
g_object_set (NM_SETTING_BRIDGE (base_setting),
|
||||
NM_SETTING_BRIDGE_INTERFACE_NAME, "nm-bridge",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue