3 \cp -f materials/B-34-IPv6v4-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf
9 RealServer1=RealServer1
11 RealServer1_PORT=50001
12 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
15 echo "Test failed: start_lighttpd RealServer1"
19 RealServer2=RealServer2
21 RealServer2_PORT=50002
22 start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT
25 echo "Test failed: start_lighttpd RealServer2"
33 echo "Test failed: $INIT_L7VSD start"
39 $INIT_L7DIRECTORD start
42 echo "Test failed: $INIT_L7DIRECTORD start"
48 EXPECT="Layer-7 Virtual Server version 3.0.0
49 Prot LocalAddress:Port ProtoMod Scheduler
50 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
51 TCP localhost:50000 sessionless wrr
52 -> localhost:50001 Masq 2 0 0
53 -> localhost:50002 Masq 1 0 0 "
54 if [ "${RET}" != "${EXPECT}" ]
56 echo "Test failed: $L7VSADM"
61 for ((i=0;i<128;i++)){
62 RET=`$WGET -t 1 -qO- http://$VS:50000/`
65 echo "Test failed: $WGET -t 1 -qO- http://$VS:50000/"
70 RET=`$L7VSADM | grep "localhost:50001" | awk '{print $6}'`
73 echo "Test failed: $L7VSADM | grep localhost:50001 | awk '{print $6}'"
77 RET=`$L7VSADM | grep "localhost:50002" | awk '{print $6}'`
80 echo "Test failed: $L7VSADM | grep localhost:50002 | awk '{print $6}'"