diff options
author | Thomas Haller <thaller@redhat.com> | 2020-09-10 09:46:10 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-09-10 09:46:14 +0200 |
commit | 37c87fc81d061a6b66493758abe965b9e9ee1ce5 (patch) | |
tree | fad885bfe83886bb7d00d126cc9ba0981a030ed8 | |
parent | fe475be446205269aaae7be2d4fa6b6d115efe0c (diff) | |
download | NetworkManager-th/bond-options-reapply-fix.tar.gz |
tui: always unset "active-slave" bond option in nmtuith/bond-options-reapply-fix
"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.c | 1 |
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) \ |