5 RealServer1=RealServer1
6 RealServer1_ADDR=127.0.0.1
8 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
12 echo "Test failed: start_lighttpd RealServer1"
16 RealServer2=RealServer2
17 RealServer2_ADDR=127.0.0.1
18 RealServer2_PORT=50002
19 start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT
23 echo "Test failed: start_lighttpd RealServer2"
31 echo "Test failed: $L7VSD"
36 $L7VSADM -A -t 127.0.0.1:40001 -m ip --timeout 10
39 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m ip --timout 10"
43 $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
46 echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
50 $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}
53 echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}"
58 RET=`curl --retry 0 --interface 127.0.0.1 http://127.0.0.1:40001/`
59 if [ "${RET}" != "${RealServer1}" ]
61 echo "curl --retry 0 --interface 127.0.0.1 http://127.0.0.1:40001/"
65 RET=`curl --retry 0 --interface 127.0.0.1 http://127.0.0.1:40001/`
66 if [ "${RET}" != "${RealServer1}" ]
68 echo "curl --retry 0 --interface 127.0.0.1 http://127.0.0.1:40001/"
74 RET=`curl --retry 0 --interface 127.0.0.1 http://127.0.0.1:40001/`
75 if [ "${RET}" != "${RealServer1}" ]
77 echo "curl --retry 0 --interface 127.0.0.1 http://127.0.0.1:40001/"
81 stop_lighttpd $RealServer1
82 stop_lighttpd $RealServer2