about summary refs log tree commit diff
path: root/clients/tui/nm-editor-utils.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2020-05-19 16:38:51 +0200
committerSebastien Bacher <seb128@ubuntu.com>2020-05-19 16:38:51 +0200
commit96642ebde58e1eea692aea6a92d33f45452fa9c0 (patch)
tree106ddfa2180b3997e8965787b5cb122982ebab9d /clients/tui/nm-editor-utils.c
parent8f6881ac06714ef99cc470a03e7ac0ce1af49a16 (diff)
parentd460892bbfece74fb6d3cd846bf6ef548290be41 (diff)
Merge branch 'upstream/latest' of https://salsa.debian.org/utopia-team/network-manager into upstream/latestt pu
Diffstat (limited to 'clients/tui/nm-editor-utils.c')
-rw-r--r--clients/tui/nm-editor-utils.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/clients/tui/nm-editor-utils.c b/clients/tui/nm-editor-utils.c
index 83fd8d3b..42019361 100644
--- a/clients/tui/nm-editor-utils.c
+++ b/clients/tui/nm-editor-utils.c
@@ -56,24 +56,19 @@ bond_connection_setup_func (NMConnection        *connection,
                             NMSetting           *s_hw)
 {
 	NMSettingBond *s_bond = NM_SETTING_BOND (s_hw);
-	const char *def, *cur;
+	guint i;
+	const char *value;
 	static const char *const options[] = {
-		NM_SETTING_BOND_OPTION_ARP_INTERVAL,
-		NM_SETTING_BOND_OPTION_ARP_IP_TARGET,
-		NM_SETTING_BOND_OPTION_DOWNDELAY,
-		NM_SETTING_BOND_OPTION_MIIMON,
 		NM_SETTING_BOND_OPTION_MODE,
-		NM_SETTING_BOND_OPTION_PRIMARY,
+		NM_SETTING_BOND_OPTION_MIIMON,
+		NM_SETTING_BOND_OPTION_DOWNDELAY,
 		NM_SETTING_BOND_OPTION_UPDELAY,
 	};
-	guint i;
 
-	/* Only add options supported by the UI */
 	for (i = 0; i < G_N_ELEMENTS (options); i++) {
-		def = nm_setting_bond_get_option_default (s_bond, options[i]);
-		cur = nm_setting_bond_get_option_by_name (s_bond, options[i]);
-		if (!nm_streq0 (def, cur))
-			nm_setting_bond_add_option (s_bond, options[i], def);
+		value = nm_setting_bond_get_option_default (s_bond, options[i]);
+		if (value)
+			nm_setting_bond_add_option (s_bond, options[i], value);
 	}
 }