diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2013-11-22 14:28:08 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2013-11-22 14:28:08 +0100 |
commit | 472ee8104d3247ca9ee7a3fbea0da7939e0c99a2 (patch) | |
tree | 59b68ada05f967b3f59a8668e0cc4d5829a0efdd | |
parent | 7698d5dfc0fc830d4dcba10354d07b4a88a9d71d (diff) | |
download | NetworkManager-472ee8104d3247ca9ee7a3fbea0da7939e0c99a2.tar.gz |
cli: initialize interface-name for new team connections in editor
-rw-r--r-- | cli/src/connections.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/src/connections.c b/cli/src/connections.c index fc4b10a300..138a83a76c 100644 --- a/cli/src/connections.c +++ b/cli/src/connections.c @@ -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", |