0001
0002
0003
0004
0005
0006
0007 ALL_TESTS="
0008 team_cleanup
0009 "
0010
0011 REQUIRE_MZ=no
0012 NUM_NETIFS=0
0013 lib_dir=$(dirname "$0")
0014 source "$lib_dir"/../../../net/forwarding/lib.sh
0015
0016 source "$lib_dir"/../bonding/lag_lib.sh
0017
0018
0019 destroy()
0020 {
0021 local ifnames=(dummy0 dummy1 team0 mv0)
0022 local ifname
0023
0024 for ifname in "${ifnames[@]}"; do
0025 ip link del "$ifname" &>/dev/null
0026 done
0027 }
0028
0029 cleanup()
0030 {
0031 pre_cleanup
0032
0033 destroy
0034 }
0035
0036
0037 team_cleanup()
0038 {
0039 RET=0
0040
0041 test_LAG_cleanup "team" "lacp"
0042 }
0043
0044
0045 require_command teamd
0046
0047 trap cleanup EXIT
0048
0049 tests_run
0050
0051 exit "$EXIT_STATUS"