summaryrefslogtreecommitdiff
path: root/libnm-core/tests
diff options
context:
space:
mode:
authorAntonio Cardace <acardace@redhat.com>2020-02-21 11:43:41 +0100
committerAntonio Cardace <acardace@redhat.com>2020-03-06 10:39:00 +0100
commit57bdf68088a8b4f5f5799ebcec97dfbb3d45fbab (patch)
treea58dc043089ce8b416d05c9b3846bc27a3d46ff5 /libnm-core/tests
parentc07f3b518c42397e452125bcd2d73e3a8459fef6 (diff)
downloadNetworkManager-57bdf68088a8b4f5f5799ebcec97dfbb3d45fbab.tar.gz
nm-setting-bond: let 'miimon' and 'arp_interval' coexist for verify()
Fix 'miimon' and 'arp_interval' validation, they can both be set indeed, the kernel does not impose this limitation, nevertheless is sensible to keep the defaults as previously (miimon=100, arp_interval=0). Also add unit test.
Diffstat (limited to 'libnm-core/tests')
-rw-r--r--libnm-core/tests/test-setting.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libnm-core/tests/test-setting.c b/libnm-core/tests/test-setting.c
index 9809ef39dd..71f484bab5 100644
--- a/libnm-core/tests/test-setting.c
+++ b/libnm-core/tests/test-setting.c
@@ -595,6 +595,16 @@ test_bond_verify (void)
"mode", "0",
"downdelay", "0",
"updelay", "0");
+ test_verify_options (TRUE,
+ "mode", "0",
+ "miimon", "100",
+ "arp_ip_target", "1.1.1.1",
+ "arp_interval", "200");
+ test_verify_options (TRUE,
+ "mode", "0",
+ "downdelay", "100",
+ "arp_ip_target", "1.1.1.1",
+ "arp_interval", "200");
}
static void