diff options
author | Thomas Haller <thaller@redhat.com> | 2020-09-09 12:34:47 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-09-10 22:09:57 +0200 |
commit | cb3a73af92fe142b23d6a33cfb9c10061ac941d3 (patch) | |
tree | 5827dde746e8c4e95080d83927909db56f88429d | |
parent | f807b68376616fd8a77d2859e336e81665df1782 (diff) | |
download | NetworkManager-cb3a73af92fe142b23d6a33cfb9c10061ac941d3.tar.gz |
libnm: allow setting "primary" option with modes "tlb" and "alb"
-rw-r--r-- | libnm-core/nm-setting-bond.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libnm-core/nm-setting-bond.c b/libnm-core/nm-setting-bond.c index 651cd4532f..3f8e5d0c17 100644 --- a/libnm-core/nm-setting-bond.c +++ b/libnm-core/nm-setting-bond.c @@ -835,7 +835,9 @@ verify (NMSetting *setting, NMConnection *connection, GError **error) } primary = _bond_get_option (self, NM_SETTING_BOND_OPTION_PRIMARY); - if (bond_mode == NM_BOND_MODE_ACTIVEBACKUP) { + if (NM_IN_SET (bond_mode, NM_BOND_MODE_ACTIVEBACKUP, + NM_BOND_MODE_TLB, + NM_BOND_MODE_ALB)) { GError *tmp_error = NULL; if (primary && !nm_utils_ifname_valid_kernel (primary, &tmp_error)) { |