Path: blob/master/tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh
26292 views
#!/bin/bash1# SPDX-License-Identifier: GPL-2.023# Regression Test:4# When the bond is configured with down/updelay and the link state of5# slave members flaps if there are no remaining members up the bond6# should immediately select a member to bring up. (from bonding.txt7# section 13.1 paragraph 4)8#9# +-------------+ +-----------+10# | client | | switch |11# | | | |12# | +--------| link1 |-----+ |13# | | +-------+ | |14# | | | | | |15# | | +-------+ | |16# | | bond | link2 | Br0 | |17# +-------------+ +-----------+18# 172.20.2.1 172.20.2.2192021REQUIRE_MZ=no22REQUIRE_JQ=no23NUM_NETIFS=024lib_dir=$(dirname "$0")25source "$lib_dir"/../../../net/forwarding/lib.sh26source "$lib_dir"/lag_lib.sh2728cleanup()29{30lag_cleanup31}3233trap cleanup 0 1 23435lag_setup_network36test_bond_recovery mode 1 miimon 100 updelay 037test_bond_recovery mode 1 miimon 100 updelay 20038test_bond_recovery mode 1 miimon 100 updelay 50039test_bond_recovery mode 1 miimon 100 updelay 100040test_bond_recovery mode 1 miimon 100 updelay 200041test_bond_recovery mode 1 miimon 100 updelay 500042test_bond_recovery mode 1 miimon 100 updelay 100004344exit "$EXIT_STATUS"454647