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.
This commit is contained in:
Thomas Haller 2020-09-10 09:46:10 +02:00
parent 2e2e2f92df
commit ef687f5c49
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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) \