summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-09-09 12:34:47 +0200
committerThomas Haller <thaller@redhat.com>2020-09-10 22:09:57 +0200
commitcb3a73af92fe142b23d6a33cfb9c10061ac941d3 (patch)
tree5827dde746e8c4e95080d83927909db56f88429d
parentf807b68376616fd8a77d2859e336e81665df1782 (diff)
downloadNetworkManager-cb3a73af92fe142b23d6a33cfb9c10061ac941d3.tar.gz
libnm: allow setting "primary" option with modes "tlb" and "alb"
-rw-r--r--libnm-core/nm-setting-bond.c4
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)) {