6 RealServer1=RealServer1
7 RealServer1_ADDR=127.0.0.1
9 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
12 echo "Test failed: start_lighttpd RealServer1"
20 echo "Test failed: $L7VSD"
25 $L7VSADM -A -t 127.0.0.1:40001 -m ip
28 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m ip"
32 $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
35 echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
40 RET=`$L7VSADM -e -t 127.0.0.1:40001 -m ip -r localhost: -w 3 2>&1 | grep "PARSE ERROR : realserver endpoint parse error:invalid port number (0):localhost:"`
41 EXPECT="PARSE ERROR : realserver endpoint parse error:invalid port number (0):localhost:"
42 if [ "${RET}" != "${EXPECT}" ]
44 echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r localhost: -w 3"