summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-09-10 09:46:10 +0200
committerThomas Haller <thaller@redhat.com>2020-09-10 22:09:59 +0200
commitef687f5c498d81ea1d72030123ef591812451e8d (patch)
tree008d446b6a3561f0f554c863bb05540caa9c2da2
parent2e2e2f92df5f5b855adfc5cc9c2481a409f58528 (diff)
downloadNetworkManager-ef687f5c498d81ea1d72030123ef591812451e8d.tar.gz
tui: always unset "active-slave" bond option in nmtui
"active_slave" option is a deprecated alias for "primary". nmtui can configure the "primary" option, so whenever it configures a profile the "active_slave" option should be unset.
-rw-r--r--clients/tui/nmt-page-bond.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clients/tui/nmt-page-bond.c b/clients/tui/nmt-page-bond.c
index 51ed8356c5..bbe18e0536 100644
--- a/clients/tui/nmt-page-bond.c
+++ b/clients/tui/nmt-page-bond.c
@@ -211,6 +211,7 @@ _bond_add_option (NMSettingBond *s_bond,
_nm_setting_bond_remove_options_miimon (s_bond);
else if (nm_streq (option, NM_SETTING_BOND_OPTION_MIIMON))
_nm_setting_bond_remove_options_arp_interval (s_bond);
+ nm_setting_bond_remove_option (s_bond, NM_SETTING_BOND_OPTION_ACTIVE_SLAVE);
}
#define WIDGET_CHANGED_FUNC(widget, func, option, dflt) \