From 57bdf68088a8b4f5f5799ebcec97dfbb3d45fbab Mon Sep 17 00:00:00 2001 From: Antonio Cardace Date: Fri, 21 Feb 2020 11:43:41 +0100 Subject: 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. --- libnm-core/tests/test-setting.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libnm-core/tests') 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 -- cgit v1.2.1