From ef687f5c498d81ea1d72030123ef591812451e8d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 10 Sep 2020 09:46:10 +0200 Subject: [PATCH] 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. --- clients/tui/nmt-page-bond.c | 1 + 1 file changed, 1 insertion(+) 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) \