mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 01:20:07 +01:00
cli: add IPv{4,6} setting for all new non-slave connections in editor
This commit is contained in:
parent
3d14d52325
commit
ecd49fb435
1 changed files with 9 additions and 0 deletions
|
|
@ -6469,6 +6469,15 @@ editor_init_new_connection (NmCli *nmc, NMConnection *connection)
|
|||
return;
|
||||
nm_connection_add_setting (connection, setting);
|
||||
|
||||
/* Always add IPv4 and IPv6 settings */
|
||||
setting = nm_setting_ip4_config_new ();
|
||||
nmc_setting_custom_init (setting);
|
||||
nm_connection_add_setting (connection, setting);
|
||||
|
||||
setting = nm_setting_ip6_config_new ();
|
||||
nmc_setting_custom_init (setting);
|
||||
nm_connection_add_setting (connection, setting);
|
||||
|
||||
/* Set a sensible bond/bridge interface name by default */
|
||||
if (g_strcmp0 (con_type, NM_SETTING_BOND_SETTING_NAME) == 0)
|
||||
g_object_set (NM_SETTING_BOND (setting),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue