Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/netinet/output.sh
Show First 20 Lines • Show All 467 Lines • ▼ Show 20 Lines | output_udp_flowid_mpath_success_body() | ||||
pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'` | pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'` | ||||
if [ ${pkt_0} -le 10 ]; then | if [ ${pkt_0} -le 10 ]; then | ||||
atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}" | atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}" | ||||
fi | fi | ||||
if [ ${pkt_1} -le 10 ]; then | if [ ${pkt_1} -le 10 ]; then | ||||
atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}" | atf_fail "Balancing failure: 1: ${pkt_0} 2: ${pkt_1}" | ||||
fi | fi | ||||
echo "UDP BALANCING: 1: ${pkt_0} 2: ${pkt_1}" | echo "UDP BALANCING: 1: ${pkt_0} 2: ${pkt_1}" | ||||
jexec ${jname}a netstat -4rnW | |||||
} | } | ||||
output_udp_flowid_mpath_success_cleanup() | output_udp_flowid_mpath_success_cleanup() | ||||
{ | { | ||||
vnet_cleanup | vnet_cleanup | ||||
} | } | ||||
atf_test_case "output_raw_flowid_mpath_success" "cleanup" | atf_test_case "output_raw_flowid_mpath_success" "cleanup" | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |