3 \cp ./materials/C-3-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"
29 RealServer3=RealServer3
31 RealServer3_PORT=50003
32 start_lighttpd -s $RealServer3 -a $RealServer3_ADDR -p $RealServer3_PORT
35 echo "Test failed: start_lighttpd RealServer3"
43 echo "Test failed: $L7VSD"
49 $INIT_L7DIRECTORD start
52 echo "Test failed: $INIT_L7DIRECTORD start"
57 RET=`$INIT_L7DIRECTORD status 2>&1 | grep "l7directord for .${L7DIRECTORD_CONF_DIR}/l7directord.cf' is running with pid:"`
60 echo "Test failed: $INIT_L7DIRECTORD status "
65 EXPECT="Layer-7 Virtual Server version 3.0.0
66 Prot LocalAddress:Port ProtoMod Scheduler
67 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
68 TCP localhost:50000 sessionless rr
69 -> localhost:50001 Masq 1 0 0
70 -> localhost:50002 Masq 1 0 0 "
71 if [ "$RET" != "$EXPECT" ]
73 echo "Test failed: $L7VSADM"
77 stop_lighttpd $RealServer1
78 stop_lighttpd $RealServer2
83 EXPECT="Layer-7 Virtual Server version 3.0.0
84 Prot LocalAddress:Port ProtoMod Scheduler
85 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
86 TCP localhost:50000 sessionless rr
87 -> localhost:50003 Masq 1 0 0 "
88 if [ "$RET" != "$EXPECT" ]
90 echo "Test failed: $L7VSADM"
95 RET=`$WGET -t 1 -qO- http://$VS:50000/`
96 if [ "${RET}" != "${RealServer3}" ]
98 echo "Test failed: $WGET -t 1 -qO- http://$VS:50000/"
103 EXPECT="Layer-7 Virtual Server version 3.0.0
104 Prot LocalAddress:Port ProtoMod Scheduler
105 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
106 TCP localhost:50000 sessionless rr
107 -> localhost:50003 Masq 1 0 1 "
108 if [ "$RET" != "$EXPECT" ]
110 echo "Test failed: $L7VSADM"