• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂35a23ecbf5a16685f56790c8c95545be954ae09a (tree)
時間2010-10-13 16:54:26
作者0809216 <0809216@1ed6...>
Commiter0809216

Log Message

#534 Fixed: Delete short option / Modified all related script...

git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10365 1ed66053-1c2d-0410-8867-f7571e6e31d3

Change Summary

差異

--- a/l7directord/l7directord
+++ b/l7directord/l7directord
@@ -4068,10 +4068,10 @@ sub get_forward_flag {
40684068 my $forward = shift;
40694069
40704070 if (defined $forward && $forward =~ /^masq$/i) {
4071- return '-M';
4071+ return '--masq';
40724072 }
40734073 elsif (defined $forward && $forward =~ /^tproxy$/i) {
4074- return '-T';
4074+ return '--tproxy';
40754075 }
40764076 return q{};
40774077 }
--- a/l7vsd/src/l7vsadm.cpp
+++ b/l7vsd/src/l7vsadm.cpp
@@ -244,9 +244,7 @@ bool l7vs::l7vsadm::parse_vs_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, i
244244 count_map["--bypass"] == 0 &&
245245 count_map["-f"] == 0 &&
246246 count_map["--flag"] == 0 &&
247- count_map["-M"] == 0 &&
248247 count_map["--masq"] == 0 &&
249- count_map["-T"] == 0 &&
250248 count_map["--tproxy"] == 0 &&
251249 count_map["-Q"] == 0 &&
252250 count_map["--qos-up"] == 0 &&
@@ -312,20 +310,7 @@ bool l7vs::l7vsadm::parse_vs_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, i
312310 is_conflict = true;
313311 }
314312 if (is_conflict == false &&
315- count_map["-M"] == 1 && count_map["--masq"] == 1) {
316- //-M(--masq)
317- conflict_option_name = "--masq";
318- is_conflict = true;
319- }
320- if (is_conflict == false &&
321- count_map["-T"] == 1 && count_map["--tproxy"] == 1) {
322- //-T(--tproxy)
323- conflict_option_name = "--tproxy";
324- is_conflict = true;
325- }
326- if (is_conflict == false &&
327- count_map["-M"] + count_map["--masq"] +
328- count_map["-T"] + count_map["--tproxy"] > 1) {
313+ count_map["--masq"] + count_map["--tproxy"] > 1) {
329314 conflict_option_name = "--masq/tproxy";
330315 is_conflict = true;
331316 }
@@ -743,9 +728,9 @@ bool l7vs::l7vsadm::parse_opt_vs_fwdmode_func(int &pos, int argc, char *argv[])
743728 Logger logger(LOG_CAT_L7VSADM_COMMON, /*XXX*/999, "l7vsadm::parse_opt_vs_fwdmode_func", __FILE__, __LINE__);
744729
745730 std::string opt(argv[pos]);
746- if (opt == "-M" || opt == "--masq") {
731+ if (opt == "--masq") {
747732 request.vs_element.sorry_fwdmode = virtualservice_element::FWD_MASQ;
748- } else if (opt == "-T" || opt == "--tproxy") {
733+ } else if (opt == "--tproxy") {
749734 #ifdef IP_TRANSPARENT
750735 request.vs_element.sorry_fwdmode = virtualservice_element::FWD_TPROXY;
751736 #else
@@ -1297,9 +1282,7 @@ bool l7vs::l7vsadm::parse_rs_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, i
12971282 // Existence check of the parameter
12981283 if (count_map["-w"] == 0 &&
12991284 count_map["--weight"] == 0 &&
1300- count_map["-M"] == 0 &&
13011285 count_map["--masq"] == 0 &&
1302- count_map["-T"] == 0 &&
13031286 count_map["--tproxy"] == 0) {
13041287 std::string buf("All option omitted for edit rs command.");
13051288 l7vsadm_err.setter(true, buf);
@@ -1347,24 +1330,9 @@ bool l7vs::l7vsadm::parse_rs_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, i
13471330 is_conflict = true;
13481331 }
13491332 if ((is_conflict == false) &&
1350- (count_map["-M"] == 1) && (count_map["--masq"] == 1) &&
1351- (l7vsadm_request::CMD_DEL_RS != cmd)) {
1352- //-M(--masq)
1353- conflict_option_name = "--masq";
1354- is_conflict = true;
1355- }
1356- if ((is_conflict == false) &&
1357- (count_map["-T"] == 1) && (count_map["--tproxy"] == 1) &&
1358- (l7vsadm_request::CMD_DEL_RS != cmd)) {
1359- //-T(--tproxy)
1360- conflict_option_name = "--tproxy";
1361- is_conflict = true;
1362- }
1363- if ((is_conflict == false) &&
1364- count_map["-M"] + count_map["--masq"] +
1365- count_map["-T"] + count_map["--tproxy"] > 1 &&
1333+ count_map["--masq"] + count_map["--tproxy"] > 1 &&
13661334 (l7vsadm_request::CMD_DEL_RS != cmd)) {
1367- //-M/T(--masq/tproxy)
1335+ //--masq/tproxy
13681336 conflict_option_name = "--masq/tproxy";
13691337 is_conflict = true;
13701338 }
@@ -1424,9 +1392,9 @@ bool l7vs::l7vsadm::parse_opt_rs_fwdmode_func(int &pos, int argc, char *argv[])
14241392 Logger logger(LOG_CAT_L7VSADM_COMMON, /*XXX*/999, "l7vsadm::parse_opt_rs_fwdmode_func", __FILE__, __LINE__);
14251393
14261394 std::string opt(argv[pos]);
1427- if (opt == "-M" || opt == "--masq") {
1395+ if (opt == "--masq") {
14281396 request.vs_element.realserver_vector.front().fwdmode = realserver_element::FWD_MASQ;
1429- } else if (opt == "-T" || opt == "--tproxy") {
1397+ } else if (opt == "--tproxy") {
14301398 #ifdef IP_TRANSPARENT
14311399 request.vs_element.realserver_vector.front().fwdmode = realserver_element::FWD_TPROXY;
14321400 #else
@@ -2280,8 +2248,8 @@ bool l7vs::l7vsadm::parse_help_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd,
22802248 " --scheduler -s scheduler one of rr,lc,wrr\n"
22812249 " --upper -u connection-count maximum number of connections\n"
22822250 " --bypass -b sorry-server sorry server address is host:port\n"
2283- " --tproxy -T set sorry server connection to IP transparent mode.\n"
2284- " --masq -M set sorry server connection to IP masquerade mode.\n"
2251+ " --tproxy set sorry server connection to IP transparent mode.\n"
2252+ " --masq set sorry server connection to IP masquerade mode.\n"
22852253
22862254 " --flag -f sorry-flag sorry status set to virtual service\n"
22872255 " --qos-up -Q QoSval-up QoS Threshold(bps) set to real server direction\n"
@@ -2293,8 +2261,8 @@ bool l7vs::l7vsadm::parse_help_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd,
22932261 " [logrotate-args]\n"
22942262 " --real-server -r server-address server-address is host:port\n"
22952263 " --weight -w weight scheduling weight set to real server\n"
2296- " --tproxy -T set real server connection to IP transparent mode.\n"
2297- " --masq -M set real server connection to IP masquerade mode.\n"
2264+ " --tproxy set real server connection to IP transparent mode.\n"
2265+ " --masq set real server connection to IP masquerade mode.\n"
22982266 " --switch -s replication-switch start or stop replication\n"
22992267 " --force -f force replication start\n"
23002268 " --dump -d dump replication memory\n"
@@ -2321,16 +2289,16 @@ std::string l7vs::l7vsadm::usage()
23212289 stream <<
23222290 "Usage: \n"
23232291 " l7vsadm -A -t service-address -m proto-module [module-args]\n"
2324- " [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]\n"
2292+ " [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]\n"
23252293 " [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-z ssl-config-file]\n"
23262294 " [-O socket-option] [-L access-log-flag] [-a access-log-file [logrotate-args]]\n"
23272295 " l7vsadm -E -t service-address -m proto-module [module-args]\n"
2328- " [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]\n"
2296+ " [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]\n"
23292297 " [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-L access-log-flag]\n"
23302298 " l7vsadm -D -t service-address -m proto-module [module-args]\n"
23312299 " l7vsadm -C\n"
23322300 " l7vsadm -a|e -t service-address -m proto-module [module-args]\n"
2333- " -r server-address [-w weight] [-T|M]\n"
2301+ " -r server-address [-w weight] [--masq|tproxy]\n"
23342302 " l7vsadm -d -t service-address -m proto-module [module-args]\n"
23352303 " -r server-address\n"
23362304 " l7vsadm -R -s replication-switch\n"
@@ -2697,9 +2665,7 @@ l7vs::l7vsadm::l7vsadm()
26972665 vs_option_dic["--upper"] = boost::bind(&l7vsadm::parse_opt_vs_upper_func, this, _1, _2, _3);
26982666 vs_option_dic["-b"] = boost::bind(&l7vsadm::parse_opt_vs_bypass_func, this, _1, _2, _3);
26992667 vs_option_dic["--bypass"] = boost::bind(&l7vsadm::parse_opt_vs_bypass_func, this, _1, _2, _3);
2700- vs_option_dic["-T"] = boost::bind(&l7vsadm::parse_opt_vs_fwdmode_func, this, _1, _2, _3);
27012668 vs_option_dic["--tproxy"] = boost::bind(&l7vsadm::parse_opt_vs_fwdmode_func, this, _1, _2, _3);
2702- vs_option_dic["-M"] = boost::bind(&l7vsadm::parse_opt_vs_fwdmode_func, this, _1, _2, _3);
27032669 vs_option_dic["--masq"] = boost::bind(&l7vsadm::parse_opt_vs_fwdmode_func, this, _1, _2, _3);
27042670 vs_option_dic["-f"] = boost::bind(&l7vsadm::parse_opt_vs_flag_func, this, _1, _2, _3);
27052671 vs_option_dic["--flag"] = boost::bind(&l7vsadm::parse_opt_vs_flag_func, this, _1, _2, _3);
@@ -2723,9 +2689,7 @@ l7vs::l7vsadm::l7vsadm()
27232689 rs_option_dic["--tcp-service"] = boost::bind(&l7vsadm::parse_opt_vs_target_func, this, _1, _2, _3);
27242690 rs_option_dic["-w"] = boost::bind(&l7vsadm::parse_opt_rs_weight_func, this, _1, _2, _3);
27252691 rs_option_dic["--weight"] = boost::bind(&l7vsadm::parse_opt_rs_weight_func, this, _1, _2, _3);
2726- rs_option_dic["-T"] = boost::bind(&l7vsadm::parse_opt_rs_fwdmode_func, this, _1, _2, _3);
27272692 rs_option_dic["--tproxy"] = boost::bind(&l7vsadm::parse_opt_rs_fwdmode_func, this, _1, _2, _3);
2728- rs_option_dic["-M"] = boost::bind(&l7vsadm::parse_opt_rs_fwdmode_func, this, _1, _2, _3);
27292693 rs_option_dic["--masq"] = boost::bind(&l7vsadm::parse_opt_rs_fwdmode_func, this, _1, _2, _3);
27302694 rs_option_dic["-m"] = boost::bind(&l7vsadm::parse_opt_vs_module_func, this, _1, _2, _3);
27312695 rs_option_dic["--proto-module"] = boost::bind(&l7vsadm::parse_opt_vs_module_func, this, _1, _2, _3);
--- a/test/script/l7directord/materials/l7directord-3-2-9.log
+++ b/test/script/l7directord/materials/l7directord-3-2-9.log
@@ -9,7 +9,7 @@ $VAR1 = {
99 'weight' => '0',
1010 'option' => {
1111 'flags' => '-r 127.0.0.3:30000',
12- 'forward' => '-M'
12+ 'forward' => '--masq'
1313 },
1414 'server' => {
1515 'ip' => '127.0.0.3',
@@ -21,7 +21,7 @@ $VAR1 = {
2121 'weight' => '1',
2222 'option' => {
2323 'flags' => '-r 127.0.0.2:20000',
24- 'forward' => '-M'
24+ 'forward' => '--masq'
2525 },
2626 'server' => {
2727 'ip' => '127.0.0.2',
@@ -36,7 +36,7 @@ $VAR1 = {
3636 'weight' => '20',
3737 'option' => {
3838 'flags' => '-r 127.0.0.3:30000',
39- 'forward' => '-M'
39+ 'forward' => '--masq'
4040 },
4141 'server' => {
4242 'ip' => '127.0.0.3',
@@ -48,7 +48,7 @@ $VAR1 = {
4848 'weight' => '10',
4949 'option' => {
5050 'flags' => '-r 127.0.0.2:20000',
51- 'forward' => '-M'
51+ 'forward' => '--masq'
5252 },
5353 'server' => {
5454 'ip' => '127.0.0.2',
@@ -66,7 +66,7 @@ $VAR1 = {
6666 'weight' => '0',
6767 'option' => {
6868 'flags' => '-r 127.0.0.1:30000',
69- 'forward' => '-M'
69+ 'forward' => '--masq'
7070 },
7171 'server' => {
7272 'ip' => '127.0.0.1',
@@ -78,7 +78,7 @@ $VAR1 = {
7878 'weight' => '1',
7979 'option' => {
8080 'flags' => '-r 127.0.0.1:20000',
81- 'forward' => '-M'
81+ 'forward' => '--masq'
8282 },
8383 'server' => {
8484 'ip' => '127.0.0.1',
@@ -93,7 +93,7 @@ $VAR1 = {
9393 'weight' => '20',
9494 'option' => {
9595 'flags' => '-r [::3]:30000',
96- 'forward' => '-M'
96+ 'forward' => '--masq'
9797 },
9898 'server' => {
9999 'ip' => '[::3]',
@@ -105,7 +105,7 @@ $VAR1 = {
105105 'weight' => '10',
106106 'option' => {
107107 'flags' => '-r [::2]:20000',
108- 'forward' => '-M'
108+ 'forward' => '--masq'
109109 },
110110 'server' => {
111111 'ip' => '[::2]',
--- a/test/script/l7vsadm/l7vsadm-4-1-2.sh
+++ b/test/script/l7vsadm/l7vsadm-4-1-2.sh
@@ -22,17 +22,10 @@ then
2222 fi
2323 usleep 100000
2424
25-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -T -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log
25+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log
2626 if [ $? -ne 0 ]
2727 then
28- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -T -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log"
29- exit 1
30-fi
31-
32-$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -M -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log
33-if [ $? -ne 0 ]
34-then
35- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -M -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log"
28+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log"
3629 exit 1
3730 fi
3831
@@ -87,29 +80,6 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
8780 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
8881 TCP localhost:40001 sessionless rr --sorry-uri '/' --statistic 0
8982 Bypass Settings:
90- Sorry Server localhost:50001 Tproxy
91- Max Connection 1000
92- Sorry Flag on
93- SSL Settings:
94- SSL Config File /etc/l7vs/sslproxy/sslproxy.target.cf
95- Logging Settings:
96- Access Log on
97- Access Log File deferaccept
98- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
99- Socket Settings:
100- TCP_DEFER_ACCEPT enable
101- TCP_NODELAY disable
102- TCP_CORK disable
103- TCP_QUICKACK disable
104- Throughput:
105- Current Upload / Limit 0.000000 Mbps / 0.004096 Mbps
106- Current Download / Limit 0.000000 Mbps / 0.004096 Mbps
107- Statistics:
108- HTTP Total Requests 0
109- HTTP GET Requests 0
110- HTTP POST Requests 0
111-TCP localhost:40002 sessionless rr --sorry-uri '/' --statistic 0
112- Bypass Settings:
11383 Sorry Server localhost:50001 Masq
11484 Max Connection 1000
11585 Sorry Flag on
--- a/test/script/l7vsadm/l7vsadm-4-1-49.sh
+++ b/test/script/l7vsadm/l7vsadm-4-1-49.sh
@@ -31,13 +31,6 @@ then
3131 fi
3232 usleep 100000
3333
34-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M
35-if [ $? -ne 0 ]
36-then
37- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M"
38- exit 1
39-fi
40-
4134 $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq
4235 if [ $? -ne 0 ]
4336 then
@@ -45,13 +38,6 @@ then
4538 exit 1
4639 fi
4740
48-$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M
49-if [ $? -ne 0 ]
50-then
51- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M"
52- exit 1
53-fi
54-
5541 $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq
5642 if [ $? -ne 0 ]
5743 then
@@ -108,29 +94,6 @@ total trap counts none
10894
10995 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
11096 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
111-TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
112- Bypass Settings:
113- Sorry Server 127.0.0.1:50001 Masq
114- Max Connection 0
115- Sorry Flag off
116- SSL Settings:
117- SSL Config File none
118- Logging Settings:
119- Access Log off
120- Access Log File none
121- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
122- Socket Settings:
123- TCP_DEFER_ACCEPT disable
124- TCP_NODELAY disable
125- TCP_CORK disable
126- TCP_QUICKACK disable
127- Throughput:
128- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
129- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
130- Statistics:
131- HTTP Total Requests 0
132- HTTP GET Requests 0
133- HTTP POST Requests 0
13497 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
13598 Bypass Settings:
13699 Sorry Server 127.0.0.1:50001 Masq
@@ -154,29 +117,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
154117 HTTP Total Requests 0
155118 HTTP GET Requests 0
156119 HTTP POST Requests 0
157-TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
158- Bypass Settings:
159- Sorry Server [::1]:50002 Masq
160- Max Connection 0
161- Sorry Flag off
162- SSL Settings:
163- SSL Config File none
164- Logging Settings:
165- Access Log off
166- Access Log File none
167- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
168- Socket Settings:
169- TCP_DEFER_ACCEPT disable
170- TCP_NODELAY disable
171- TCP_CORK disable
172- TCP_QUICKACK disable
173- Throughput:
174- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
175- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
176- Statistics:
177- HTTP Total Requests 0
178- HTTP GET Requests 0
179- HTTP POST Requests 0
180120 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
181121 Bypass Settings:
182122 Sorry Server [::1]:50002 Masq
--- a/test/script/l7vsadm/l7vsadm-4-1-50.sh
+++ b/test/script/l7vsadm/l7vsadm-4-1-50.sh
@@ -31,13 +31,6 @@ then
3131 fi
3232 usleep 100000
3333
34-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T
35-if [ $? -ne 0 ]
36-then
37- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T"
38- exit 1
39-fi
40-
4134 $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy
4235 if [ $? -ne 0 ]
4336 then
@@ -45,13 +38,6 @@ then
4538 exit 1
4639 fi
4740
48-$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T
49-if [ $? -ne 0 ]
50-then
51- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T"
52- exit 1
53-fi
54-
5541 $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --tproxy
5642 if [ $? -ne 0 ]
5743 then
@@ -108,29 +94,6 @@ total trap counts none
10894
10995 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
11096 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
111-TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
112- Bypass Settings:
113- Sorry Server 127.0.0.1:50001 Tproxy
114- Max Connection 0
115- Sorry Flag off
116- SSL Settings:
117- SSL Config File none
118- Logging Settings:
119- Access Log off
120- Access Log File none
121- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
122- Socket Settings:
123- TCP_DEFER_ACCEPT disable
124- TCP_NODELAY disable
125- TCP_CORK disable
126- TCP_QUICKACK disable
127- Throughput:
128- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
129- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
130- Statistics:
131- HTTP Total Requests 0
132- HTTP GET Requests 0
133- HTTP POST Requests 0
13497 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
13598 Bypass Settings:
13699 Sorry Server 127.0.0.1:50001 Tproxy
@@ -154,29 +117,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
154117 HTTP Total Requests 0
155118 HTTP GET Requests 0
156119 HTTP POST Requests 0
157-TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
158- Bypass Settings:
159- Sorry Server [::1]:50002 Tproxy
160- Max Connection 0
161- Sorry Flag off
162- SSL Settings:
163- SSL Config File none
164- Logging Settings:
165- Access Log off
166- Access Log File none
167- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
168- Socket Settings:
169- TCP_DEFER_ACCEPT disable
170- TCP_NODELAY disable
171- TCP_CORK disable
172- TCP_QUICKACK disable
173- Throughput:
174- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
175- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
176- Statistics:
177- HTTP Total Requests 0
178- HTTP GET Requests 0
179- HTTP POST Requests 0
180120 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
181121 Bypass Settings:
182122 Sorry Server [::1]:50002 Tproxy
--- a/test/script/l7vsadm/l7vsadm-4-1-51.sh
+++ b/test/script/l7vsadm/l7vsadm-4-1-51.sh
@@ -30,14 +30,6 @@ then
3030 fi
3131 usleep 100000
3232
33-RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
34-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
35-if [ "${RET}" != "${EXPECT}" ]
36-then
37- echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT -M -T"
38- exit 1
39-fi
40-
4133 RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
4234 EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
4335 if [ "${RET}" != "${EXPECT}" ]
@@ -46,30 +38,6 @@ then
4638 exit 1
4739 fi
4840
49-RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
50-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
51-if [ "${RET}" != "${EXPECT}" ]
52-then
53- echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT -M --tproxy"
54- exit 1
55-fi
56-
57-RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
58-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
59-if [ "${RET}" != "${EXPECT}" ]
60-then
61- echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT --masq -T"
62- exit 1
63-fi
64-
65-RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
66-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
67-if [ "${RET}" != "${EXPECT}" ]
68-then
69- echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT -M -T"
70- exit 1
71-fi
72-
7341 RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
7442 EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
7543 if [ "${RET}" != "${EXPECT}" ]
@@ -78,21 +46,5 @@ then
7846 exit 1
7947 fi
8048
81-RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
82-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
83-if [ "${RET}" != "${EXPECT}" ]
84-then
85- echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT -M --tproxy"
86- exit 1
87-fi
88-
89-RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
90-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
91-if [ "${RET}" != "${EXPECT}" ]
92-then
93- echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT --masq -T"
94- exit 1
95-fi
96-
9749 exit 0
9850
--- a/test/script/l7vsadm/l7vsadm-4-3-1.sh
+++ b/test/script/l7vsadm/l7vsadm-4-3-1.sh
@@ -109,10 +109,10 @@ then
109109 fi
110110
111111
112-$L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 -T -Q 1M -q 1M -L 1
112+$L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 --tproxy -Q 1M -q 1M -L 1
113113 if [ $? -ne 0 ]
114114 then
115- echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 -T -Q 1M -q 1M -L 1"
115+ echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 --tproxy -Q 1M -q 1M -L 1"
116116 exit 1
117117 fi
118118
--- a/test/script/l7vsadm/l7vsadm-4-3-36.sh
+++ b/test/script/l7vsadm/l7vsadm-4-3-36.sh
@@ -31,31 +31,17 @@ then
3131 fi
3232 usleep 100000
3333
34-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M
34+$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq
3535 if [ $? -ne 0 ]
3636 then
37- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M"
37+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq"
3838 exit 1
3939 fi
4040
41-$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M
41+$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq
4242 if [ $? -ne 0 ]
4343 then
44- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M"
45- exit 1
46-fi
47-
48-$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M
49-if [ $? -ne 0 ]
50-then
51- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M"
52- exit 1
53-fi
54-
55-$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M
56-if [ $? -ne 0 ]
57-then
58- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M"
44+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq"
5945 exit 1
6046 fi
6147
@@ -108,29 +94,6 @@ total trap counts none
10894
10995 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
11096 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
111-TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
112- Bypass Settings:
113- Sorry Server 127.0.0.1:50001 Masq
114- Max Connection 0
115- Sorry Flag off
116- SSL Settings:
117- SSL Config File none
118- Logging Settings:
119- Access Log off
120- Access Log File none
121- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
122- Socket Settings:
123- TCP_DEFER_ACCEPT disable
124- TCP_NODELAY disable
125- TCP_CORK disable
126- TCP_QUICKACK disable
127- Throughput:
128- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
129- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
130- Statistics:
131- HTTP Total Requests 0
132- HTTP GET Requests 0
133- HTTP POST Requests 0
13497 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
13598 Bypass Settings:
13699 Sorry Server 127.0.0.1:50001 Masq
@@ -154,29 +117,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
154117 HTTP Total Requests 0
155118 HTTP GET Requests 0
156119 HTTP POST Requests 0
157-TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
158- Bypass Settings:
159- Sorry Server [::1]:50002 Masq
160- Max Connection 0
161- Sorry Flag off
162- SSL Settings:
163- SSL Config File none
164- Logging Settings:
165- Access Log off
166- Access Log File none
167- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
168- Socket Settings:
169- TCP_DEFER_ACCEPT disable
170- TCP_NODELAY disable
171- TCP_CORK disable
172- TCP_QUICKACK disable
173- Throughput:
174- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
175- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
176- Statistics:
177- HTTP Total Requests 0
178- HTTP GET Requests 0
179- HTTP POST Requests 0
180120 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
181121 Bypass Settings:
182122 Sorry Server [::1]:50002 Masq
@@ -206,13 +146,6 @@ then
206146 exit 1
207147 fi
208148
209-$L7VSADM -E -t 127.0.0.1:40001 -m sessionless -T
210-if [ $? -ne 0 ]
211-then
212- echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -T"
213- exit 1
214-fi
215-
216149 $L7VSADM -E -t 127.0.0.1:40002 -m sessionless --tproxy
217150 if [ $? -ne 0 ]
218151 then
@@ -220,13 +153,6 @@ then
220153 exit 1
221154 fi
222155
223-$L7VSADM -E -t 127.0.0.1:40003 -m sessionless -T
224-if [ $? -ne 0 ]
225-then
226- echo "Test failed: $L7VSADM -E -t 127.0.0.1:40003 -m sessionless -T"
227- exit 1
228-fi
229-
230156 $L7VSADM -E -t 127.0.0.1:40004 -m sessionless --tproxy
231157 if [ $? -ne 0 ]
232158 then
@@ -283,29 +209,6 @@ total trap counts none
283209
284210 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
285211 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
286-TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
287- Bypass Settings:
288- Sorry Server 127.0.0.1:50001 Tproxy
289- Max Connection 0
290- Sorry Flag off
291- SSL Settings:
292- SSL Config File none
293- Logging Settings:
294- Access Log off
295- Access Log File none
296- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
297- Socket Settings:
298- TCP_DEFER_ACCEPT disable
299- TCP_NODELAY disable
300- TCP_CORK disable
301- TCP_QUICKACK disable
302- Throughput:
303- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
304- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
305- Statistics:
306- HTTP Total Requests 0
307- HTTP GET Requests 0
308- HTTP POST Requests 0
309212 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
310213 Bypass Settings:
311214 Sorry Server 127.0.0.1:50001 Tproxy
@@ -329,29 +232,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
329232 HTTP Total Requests 0
330233 HTTP GET Requests 0
331234 HTTP POST Requests 0
332-TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
333- Bypass Settings:
334- Sorry Server [::1]:50002 Tproxy
335- Max Connection 0
336- Sorry Flag off
337- SSL Settings:
338- SSL Config File none
339- Logging Settings:
340- Access Log off
341- Access Log File none
342- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
343- Socket Settings:
344- TCP_DEFER_ACCEPT disable
345- TCP_NODELAY disable
346- TCP_CORK disable
347- TCP_QUICKACK disable
348- Throughput:
349- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
350- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
351- Statistics:
352- HTTP Total Requests 0
353- HTTP GET Requests 0
354- HTTP POST Requests 0
355235 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
356236 Bypass Settings:
357237 Sorry Server [::1]:50002 Tproxy
--- a/test/script/l7vsadm/l7vsadm-4-3-37.sh
+++ b/test/script/l7vsadm/l7vsadm-4-3-37.sh
@@ -31,31 +31,17 @@ then
3131 fi
3232 usleep 100000
3333
34-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T
34+$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy
3535 if [ $? -ne 0 ]
3636 then
37- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T"
37+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy"
3838 exit 1
3939 fi
4040
41-$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T
41+$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --tproxy
4242 if [ $? -ne 0 ]
4343 then
44- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T"
45- exit 1
46-fi
47-
48-$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T
49-if [ $? -ne 0 ]
50-then
51- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T"
52- exit 1
53-fi
54-
55-$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T
56-if [ $? -ne 0 ]
57-then
58- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T"
44+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy"
5945 exit 1
6046 fi
6147
@@ -108,29 +94,6 @@ total trap counts none
10894
10995 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
11096 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
111-TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
112- Bypass Settings:
113- Sorry Server 127.0.0.1:50001 Tproxy
114- Max Connection 0
115- Sorry Flag off
116- SSL Settings:
117- SSL Config File none
118- Logging Settings:
119- Access Log off
120- Access Log File none
121- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
122- Socket Settings:
123- TCP_DEFER_ACCEPT disable
124- TCP_NODELAY disable
125- TCP_CORK disable
126- TCP_QUICKACK disable
127- Throughput:
128- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
129- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
130- Statistics:
131- HTTP Total Requests 0
132- HTTP GET Requests 0
133- HTTP POST Requests 0
13497 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
13598 Bypass Settings:
13699 Sorry Server 127.0.0.1:50001 Tproxy
@@ -154,29 +117,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
154117 HTTP Total Requests 0
155118 HTTP GET Requests 0
156119 HTTP POST Requests 0
157-TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
158- Bypass Settings:
159- Sorry Server [::1]:50002 Tproxy
160- Max Connection 0
161- Sorry Flag off
162- SSL Settings:
163- SSL Config File none
164- Logging Settings:
165- Access Log off
166- Access Log File none
167- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
168- Socket Settings:
169- TCP_DEFER_ACCEPT disable
170- TCP_NODELAY disable
171- TCP_CORK disable
172- TCP_QUICKACK disable
173- Throughput:
174- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
175- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
176- Statistics:
177- HTTP Total Requests 0
178- HTTP GET Requests 0
179- HTTP POST Requests 0
180120 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
181121 Bypass Settings:
182122 Sorry Server [::1]:50002 Tproxy
@@ -206,13 +146,6 @@ then
206146 exit 1
207147 fi
208148
209-$L7VSADM -E -t 127.0.0.1:40001 -m sessionless -M
210-if [ $? -ne 0 ]
211-then
212- echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -M"
213- exit 1
214-fi
215-
216149 $L7VSADM -E -t 127.0.0.1:40002 -m sessionless --masq
217150 if [ $? -ne 0 ]
218151 then
@@ -220,13 +153,6 @@ then
220153 exit 1
221154 fi
222155
223-$L7VSADM -E -t 127.0.0.1:40003 -m sessionless -M
224-if [ $? -ne 0 ]
225-then
226- echo "Test failed: $L7VSADM -E -t 127.0.0.1:40003 -m sessionless -M"
227- exit 1
228-fi
229-
230156 $L7VSADM -E -t 127.0.0.1:40004 -m sessionless --masq
231157 if [ $? -ne 0 ]
232158 then
@@ -283,29 +209,6 @@ total trap counts none
283209
284210 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
285211 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
286-TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
287- Bypass Settings:
288- Sorry Server 127.0.0.1:50001 Masq
289- Max Connection 0
290- Sorry Flag off
291- SSL Settings:
292- SSL Config File none
293- Logging Settings:
294- Access Log off
295- Access Log File none
296- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
297- Socket Settings:
298- TCP_DEFER_ACCEPT disable
299- TCP_NODELAY disable
300- TCP_CORK disable
301- TCP_QUICKACK disable
302- Throughput:
303- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
304- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
305- Statistics:
306- HTTP Total Requests 0
307- HTTP GET Requests 0
308- HTTP POST Requests 0
309212 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
310213 Bypass Settings:
311214 Sorry Server 127.0.0.1:50001 Masq
@@ -329,29 +232,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
329232 HTTP Total Requests 0
330233 HTTP GET Requests 0
331234 HTTP POST Requests 0
332-TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
333- Bypass Settings:
334- Sorry Server [::1]:50002 Masq
335- Max Connection 0
336- Sorry Flag off
337- SSL Settings:
338- SSL Config File none
339- Logging Settings:
340- Access Log off
341- Access Log File none
342- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
343- Socket Settings:
344- TCP_DEFER_ACCEPT disable
345- TCP_NODELAY disable
346- TCP_CORK disable
347- TCP_QUICKACK disable
348- Throughput:
349- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
350- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
351- Statistics:
352- HTTP Total Requests 0
353- HTTP GET Requests 0
354- HTTP POST Requests 0
355235 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
356236 Bypass Settings:
357237 Sorry Server [::1]:50002 Masq
--- a/test/script/l7vsadm/l7vsadm-4-3-38.sh
+++ b/test/script/l7vsadm/l7vsadm-4-3-38.sh
@@ -30,68 +30,17 @@ then
3030 fi
3131 usleep 100000
3232
33-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M
33+$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq
3434 if [ $? -ne 0 ]
3535 then
36- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M"
36+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq"
3737 exit 1
3838 fi
3939
40-$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M
40+$L7VSADM -A -t 127.0.0.1:40006 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq
4141 if [ $? -ne 0 ]
4242 then
43- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M"
44- exit 1
45-fi
46-
47-$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T
48-if [ $? -ne 0 ]
49-then
50- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T"
51- exit 1
52-fi
53-
54-$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T
55-if [ $? -ne 0 ]
56-then
57- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T"
58- exit 1
59-fi
60-
61-$L7VSADM -A -t 127.0.0.1:40005 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M
62-if [ $? -ne 0 ]
63-then
64- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40005 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M"
65- exit 1
66-fi
67-
68-$L7VSADM -A -t 127.0.0.1:40006 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M
69-if [ $? -ne 0 ]
70-then
71- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40006 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M"
72- exit 1
73-fi
74-
75-$L7VSADM -A -t 127.0.0.1:40007 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T
76-if [ $? -ne 0 ]
77-then
78- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40007 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T"
79- exit 1
80-fi
81-
82-$L7VSADM -A -t 127.0.0.1:40008 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T
83-if [ $? -ne 0 ]
84-then
85- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40008 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T"
86- exit 1
87-fi
88-
89-
90-RET=`$L7VSADM -E -t localhost:40001 -m sessionless -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
91-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
92-if [ "${RET}" != "${EXPECT}" ]
93-then
94- echo "Test failed: $L7VSADM -E -t localhost:40001 -m sessionless -M -T"
43+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40006 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq"
9544 exit 1
9645 fi
9746
@@ -103,30 +52,6 @@ then
10352 exit 1
10453 fi
10554
106-RET=`$L7VSADM -E -t localhost:40003 -m sessionless -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
107-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
108-if [ "${RET}" != "${EXPECT}" ]
109-then
110- echo "Test failed: $L7VSADM -E -t localhost:40003 -m sessionless -M --tproxy"
111- exit 1
112-fi
113-
114-RET=`$L7VSADM -E -t localhost:40004 -m sessionless --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
115-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
116-if [ "${RET}" != "${EXPECT}" ]
117-then
118- echo "Test failed: $L7VSADM -E -t localhost:40004 -m sessionless --masq -T"
119- exit 1
120-fi
121-
122-RET=`$L7VSADM -E -t localhost:40005 -m sessionless -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
123-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
124-if [ "${RET}" != "${EXPECT}" ]
125-then
126- echo "Test failed: $L7VSADM -E -t localhost:40005 -m sessionless -M -T"
127- exit 1
128-fi
129-
13055 RET=`$L7VSADM -E -t localhost:40006 -m sessionless --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
13156 EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
13257 if [ "${RET}" != "${EXPECT}" ]
@@ -135,20 +60,4 @@ then
13560 exit 1
13661 fi
13762
138-RET=`$L7VSADM -E -t localhost:40007 -m sessionless -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
139-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
140-if [ "${RET}" != "${EXPECT}" ]
141-then
142- echo "Test failed: $L7VSADM -E -t localhost:40007 -m sessionless -M --tproxy"
143- exit 1
144-fi
145-
146-RET=`$L7VSADM -E -t localhost:40008 -m sessionless --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
147-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
148-if [ "${RET}" != "${EXPECT}" ]
149-then
150- echo "Test failed: $L7VSADM -E -t localhost:40008 -m sessionless --masq -T"
151- exit 1
152-fi
153-
15463 exit 0
--- a/test/script/l7vsadm/l7vsadm-4-3-39.sh
+++ b/test/script/l7vsadm/l7vsadm-4-3-39.sh
@@ -31,31 +31,17 @@ then
3131 fi
3232 usleep 100000
3333
34-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M
34+$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq
3535 if [ $? -ne 0 ]
3636 then
37- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M"
37+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq"
3838 exit 1
3939 fi
4040
41-$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M
41+$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy
4242 if [ $? -ne 0 ]
4343 then
44- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M"
45- exit 1
46-fi
47-
48-$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T
49-if [ $? -ne 0 ]
50-then
51- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T"
52- exit 1
53-fi
54-
55-$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T
56-if [ $? -ne 0 ]
57-then
58- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T"
44+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy"
5945 exit 1
6046 fi
6147
@@ -108,29 +94,6 @@ total trap counts none
10894
10995 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
11096 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
111-TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
112- Bypass Settings:
113- Sorry Server 127.0.0.1:50001 Masq
114- Max Connection 0
115- Sorry Flag off
116- SSL Settings:
117- SSL Config File none
118- Logging Settings:
119- Access Log off
120- Access Log File none
121- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
122- Socket Settings:
123- TCP_DEFER_ACCEPT disable
124- TCP_NODELAY disable
125- TCP_CORK disable
126- TCP_QUICKACK disable
127- Throughput:
128- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
129- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
130- Statistics:
131- HTTP Total Requests 0
132- HTTP GET Requests 0
133- HTTP POST Requests 0
13497 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
13598 Bypass Settings:
13699 Sorry Server [::1]:50002 Masq
@@ -176,29 +139,6 @@ TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
176139 Statistics:
177140 HTTP Total Requests 0
178141 HTTP GET Requests 0
179- HTTP POST Requests 0
180-TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
181- Bypass Settings:
182- Sorry Server [::1]:50002 Tproxy
183- Max Connection 0
184- Sorry Flag off
185- SSL Settings:
186- SSL Config File none
187- Logging Settings:
188- Access Log off
189- Access Log File none
190- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
191- Socket Settings:
192- TCP_DEFER_ACCEPT disable
193- TCP_NODELAY disable
194- TCP_CORK disable
195- TCP_QUICKACK disable
196- Throughput:
197- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
198- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
199- Statistics:
200- HTTP Total Requests 0
201- HTTP GET Requests 0
202142 HTTP POST Requests 0"
203143 if [ "${RET}" != "${EXPECT}" ]
204144 then
@@ -206,13 +146,6 @@ then
206146 exit 1
207147 fi
208148
209-$L7VSADM -E -t 127.0.0.1:40001 -m sessionless -f 1
210-if [ $? -ne 0 ]
211-then
212- echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -f 1"
213- exit 1
214-fi
215-
216149 $L7VSADM -E -t 127.0.0.1:40002 -m sessionless -f 1
217150 if [ $? -ne 0 ]
218151 then
@@ -227,13 +160,6 @@ then
227160 exit 1
228161 fi
229162
230-$L7VSADM -E -t 127.0.0.1:40004 -m sessionless -f 1
231-if [ $? -ne 0 ]
232-then
233- echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -f 1"
234- exit 1
235-fi
236-
237163 RET=`$L7VSADM -V -n`
238164 EXPECT="Layer-7 Virtual Server version 3.0.0
239165 L7vsd Log Level:
@@ -283,29 +209,6 @@ total trap counts none
283209
284210 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
285211 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
286-TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
287- Bypass Settings:
288- Sorry Server 127.0.0.1:50001 Masq
289- Max Connection 0
290- Sorry Flag on
291- SSL Settings:
292- SSL Config File none
293- Logging Settings:
294- Access Log off
295- Access Log File none
296- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
297- Socket Settings:
298- TCP_DEFER_ACCEPT disable
299- TCP_NODELAY disable
300- TCP_CORK disable
301- TCP_QUICKACK disable
302- Throughput:
303- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
304- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
305- Statistics:
306- HTTP Total Requests 0
307- HTTP GET Requests 0
308- HTTP POST Requests 0
309212 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
310213 Bypass Settings:
311214 Sorry Server [::1]:50002 Masq
@@ -351,29 +254,6 @@ TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
351254 Statistics:
352255 HTTP Total Requests 0
353256 HTTP GET Requests 0
354- HTTP POST Requests 0
355-TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
356- Bypass Settings:
357- Sorry Server [::1]:50002 Tproxy
358- Max Connection 0
359- Sorry Flag on
360- SSL Settings:
361- SSL Config File none
362- Logging Settings:
363- Access Log off
364- Access Log File none
365- Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
366- Socket Settings:
367- TCP_DEFER_ACCEPT disable
368- TCP_NODELAY disable
369- TCP_CORK disable
370- TCP_QUICKACK disable
371- Throughput:
372- Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
373- Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
374- Statistics:
375- HTTP Total Requests 0
376- HTTP GET Requests 0
377257 HTTP POST Requests 0"
378258 if [ "${RET}" != "${EXPECT}" ]
379259 then
--- a/test/script/l7vsadm/l7vsadm-5-1-1.sh
+++ b/test/script/l7vsadm/l7vsadm-5-1-1.sh
@@ -38,17 +38,17 @@ then
3838 exit 1
3939 fi
4040
41-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 0 -M
41+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 0 --masq
4242 if [ $? -ne 0 ]
4343 then
44- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 0 -M"
44+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 0 --masq"
4545 exit 1
4646 fi
4747
48-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -w 2 -T
48+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -w 2 --tproxy
4949 if [ $? -ne 0 ]
5050 then
51- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -w 2 -T"
51+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -w 2 --tproxy"
5252 exit 1
5353 fi
5454
--- a/test/script/l7vsadm/l7vsadm-5-1-13.sh
+++ b/test/script/l7vsadm/l7vsadm-5-1-13.sh
@@ -2,26 +2,6 @@
22 . ${SET_DEFAULT_CONF}
33
44 #Run http server
5-RealServer1=RealServer1
6-RealServer1_ADDR=127.0.0.1
7-RealServer1_PORT=50001
8-start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
9-if [ $? -ne 0 ]
10-then
11- echo "Test failed: start_lighttpd RealServer1"
12- exit 1
13-fi
14-
15-RealServer2=RealServer2
16-RealServer2_ADDR=[::1]
17-RealServer2_PORT=50002
18-start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i
19-if [ $? -ne 0 ]
20-then
21- echo "Test failed: start_lighttpd RealServer2"
22- exit 1
23-fi
24-
255 RealServer3=RealServer3
266 RealServer3_ADDR=127.0.0.1
277 RealServer3_PORT=50003
@@ -58,20 +38,6 @@ then
5838 exit 1
5939 fi
6040
61-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M
62-if [ $? -ne 0 ]
63-then
64- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M"
65- exit 1
66-fi
67-
68-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M
69-if [ $? -ne 0 ]
70-then
71- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M"
72- exit 1
73-fi
74-
7541 $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --masq
7642 if [ $? -ne 0 ]
7743 then
@@ -91,8 +57,6 @@ EXPECT="Layer-7 Virtual Server version 3.0.0
9157 Prot LocalAddress:Port ProtoMod Scheduler
9258 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
9359 TCP 127.0.0.1:40001 ip rr
94- -> ${RealServer1_ADDR}:${RealServer1_PORT} Masq 1 0 0
95- -> ${RealServer2_ADDR}:${RealServer2_PORT} Masq 1 0 0
9660 -> ${RealServer3_ADDR}:${RealServer3_PORT} Masq 1 0 0
9761 -> ${RealServer4_ADDR}:${RealServer4_PORT} Masq 1 0 0 "
9862 if [ "${RET}" != "${EXPECT}" ]
--- a/test/script/l7vsadm/l7vsadm-5-1-14.sh
+++ b/test/script/l7vsadm/l7vsadm-5-1-14.sh
@@ -2,26 +2,6 @@
22 . ${SET_DEFAULT_CONF}
33
44 #Run http server
5-RealServer1=RealServer1
6-RealServer1_ADDR=127.0.0.1
7-RealServer1_PORT=50001
8-start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
9-if [ $? -ne 0 ]
10-then
11- echo "Test failed: start_lighttpd RealServer1"
12- exit 1
13-fi
14-
15-RealServer2=RealServer2
16-RealServer2_ADDR=[::1]
17-RealServer2_PORT=50002
18-start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i
19-if [ $? -ne 0 ]
20-then
21- echo "Test failed: start_lighttpd RealServer2"
22- exit 1
23-fi
24-
255 RealServer3=RealServer3
266 RealServer3_ADDR=127.0.0.1
277 RealServer3_PORT=50003
@@ -58,20 +38,6 @@ then
5838 exit 1
5939 fi
6040
61-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T
62-if [ $? -ne 0 ]
63-then
64- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T"
65- exit 1
66-fi
67-
68-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T
69-if [ $? -ne 0 ]
70-then
71- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T"
72- exit 1
73-fi
74-
7541 $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy
7642 if [ $? -ne 0 ]
7743 then
@@ -91,8 +57,6 @@ EXPECT="Layer-7 Virtual Server version 3.0.0
9157 Prot LocalAddress:Port ProtoMod Scheduler
9258 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
9359 TCP 127.0.0.1:40001 ip rr
94- -> ${RealServer1_ADDR}:${RealServer1_PORT} Tproxy 1 0 0
95- -> ${RealServer2_ADDR}:${RealServer2_PORT} Tproxy 1 0 0
9660 -> ${RealServer3_ADDR}:${RealServer3_PORT} Tproxy 1 0 0
9761 -> ${RealServer4_ADDR}:${RealServer4_PORT} Tproxy 1 0 0 "
9862 if [ "${RET}" != "${EXPECT}" ]
--- a/test/script/l7vsadm/l7vsadm-5-1-15.sh
+++ b/test/script/l7vsadm/l7vsadm-5-1-15.sh
@@ -37,14 +37,6 @@ then
3737 exit 1
3838 fi
3939
40-RET=`$L7VSADM -a -t localhost:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
41-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
42-if [ "${RET}" != "${EXPECT}" ]
43-then
44- echo "Test failed: $L7VSADM -a -t localhost:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M -T"
45- exit 1
46-fi
47-
4840 RET=`$L7VSADM -a -t localhost:40002 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
4941 EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
5042 if [ "${RET}" != "${EXPECT}" ]
@@ -53,30 +45,6 @@ then
5345 exit 1
5446 fi
5547
56-RET=`$L7VSADM -a -t localhost:40003 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
57-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
58-if [ "${RET}" != "${EXPECT}" ]
59-then
60- echo "Test failed: $L7VSADM -a -t localhost:40003 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M --tproxy"
61- exit 1
62-fi
63-
64-RET=`$L7VSADM -a -t localhost:40004 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
65-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
66-if [ "${RET}" != "${EXPECT}" ]
67-then
68- echo "Test failed: $L7VSADM -a -t localhost:40004 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq -T"
69- exit 1
70-fi
71-
72-RET=`$L7VSADM -a -t localhost:40005 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
73-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
74-if [ "${RET}" != "${EXPECT}" ]
75-then
76- echo "Test failed: $L7VSADM -a -t localhost:40005 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M -T"
77- exit 1
78-fi
79-
8048 RET=`$L7VSADM -a -t localhost:40006 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
8149 EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
8250 if [ "${RET}" != "${EXPECT}" ]
@@ -85,21 +53,5 @@ then
8553 exit 1
8654 fi
8755
88-RET=`$L7VSADM -a -t localhost:40007 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
89-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
90-if [ "${RET}" != "${EXPECT}" ]
91-then
92- echo "Test failed: $L7VSADM -a -t localhost:40007 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M --tproxy"
93- exit 1
94-fi
95-
96-RET=`$L7VSADM -a -t localhost:40008 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
97-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
98-if [ "${RET}" != "${EXPECT}" ]
99-then
100- echo "Test failed: $L7VSADM -a -t localhost:40008 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq -T"
101- exit 1
102-fi
103-
10456 exit 0
10557
--- a/test/script/l7vsadm/l7vsadm-5-3-1.sh
+++ b/test/script/l7vsadm/l7vsadm-5-3-1.sh
@@ -36,10 +36,10 @@ then
3636 exit 1
3737 fi
3838
39-$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 2 -T
39+$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 2 --tproxy
4040 if [ $? -ne 0 ]
4141 then
42- echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 2 -T"
42+ echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 2 --tproxy"
4343 exit 1
4444 fi
4545
--- a/test/script/l7vsadm/l7vsadm-5-3-12.sh
+++ b/test/script/l7vsadm/l7vsadm-5-3-12.sh
@@ -58,31 +58,31 @@ then
5858 exit 1
5959 fi
6060
61-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M
61+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq
6262 if [ $? -ne 0 ]
6363 then
64- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M"
64+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq"
6565 exit 1
6666 fi
6767
68-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M
68+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} --masq
6969 if [ $? -ne 0 ]
7070 then
71- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M"
71+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} --masq"
7272 exit 1
7373 fi
7474
75-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -T
75+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy
7676 if [ $? -ne 0 ]
7777 then
78- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -T"
78+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy"
7979 exit 1
8080 fi
8181
82-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -T
82+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --tproxy
8383 if [ $? -ne 0 ]
8484 then
85- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -T"
85+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --tproxy"
8686 exit 1
8787 fi
8888
--- a/test/script/l7vsadm/l7vsadm-5-3-13.sh
+++ b/test/script/l7vsadm/l7vsadm-5-3-13.sh
@@ -2,26 +2,6 @@
22 . ${SET_DEFAULT_CONF}
33
44 #Run http server
5-RealServer1=RealServer1
6-RealServer1_ADDR=127.0.0.1
7-RealServer1_PORT=50001
8-start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
9-if [ $? -ne 0 ]
10-then
11- echo "Test failed: start_lighttpd RealServer1"
12- exit 1
13-fi
14-
15-RealServer2=RealServer2
16-RealServer2_ADDR=[::1]
17-RealServer2_PORT=50002
18-start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i
19-if [ $? -ne 0 ]
20-then
21- echo "Test failed: start_lighttpd RealServer2"
22- exit 1
23-fi
24-
255 RealServer3=RealServer3
266 RealServer3_ADDR=127.0.0.1
277 RealServer3_PORT=50003
@@ -58,47 +38,17 @@ then
5838 exit 1
5939 fi
6040
61-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T
62-if [ $? -ne 0 ]
63-then
64- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T"
65- exit 1
66-fi
67-
68-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T
69-if [ $? -ne 0 ]
70-then
71- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T"
72- exit 1
73-fi
74-
75-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -T
76-if [ $? -ne 0 ]
77-then
78- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -T"
79- exit 1
80-fi
81-
82-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -T
83-if [ $? -ne 0 ]
84-then
85- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -T"
86- exit 1
87-fi
88-
89-
90-
91-$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M
41+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy
9242 if [ $? -ne 0 ]
9343 then
94- echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M"
44+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy"
9545 exit 1
9646 fi
9747
98-$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M
48+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --tproxy
9949 if [ $? -ne 0 ]
10050 then
101- echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M"
51+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --tproxy"
10252 exit 1
10353 fi
10454
@@ -122,8 +72,6 @@ EXPECT="Layer-7 Virtual Server version 3.0.0
12272 Prot LocalAddress:Port ProtoMod Scheduler
12373 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
12474 TCP 127.0.0.1:40001 ip rr
125- -> ${RealServer1_ADDR}:${RealServer1_PORT} Masq 1 0 0
126- -> ${RealServer2_ADDR}:${RealServer2_PORT} Masq 1 0 0
12775 -> ${RealServer3_ADDR}:${RealServer3_PORT} Masq 1 0 0
12876 -> ${RealServer4_ADDR}:${RealServer4_PORT} Masq 1 0 0 "
12977 if [ "${RET}" != "${EXPECT}" ]
--- a/test/script/l7vsadm/l7vsadm-5-3-14.sh
+++ b/test/script/l7vsadm/l7vsadm-5-3-14.sh
@@ -2,26 +2,6 @@
22 . ${SET_DEFAULT_CONF}
33
44 #Run http server
5-RealServer1=RealServer1
6-RealServer1_ADDR=127.0.0.1
7-RealServer1_PORT=50001
8-start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
9-if [ $? -ne 0 ]
10-then
11- echo "Test failed: start_lighttpd RealServer1"
12- exit 1
13-fi
14-
15-RealServer2=RealServer2
16-RealServer2_ADDR=[::1]
17-RealServer2_PORT=50002
18-start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i
19-if [ $? -ne 0 ]
20-then
21- echo "Test failed: start_lighttpd RealServer2"
22- exit 1
23-fi
24-
255 RealServer3=RealServer3
266 RealServer3_ADDR=127.0.0.1
277 RealServer3_PORT=50003
@@ -58,47 +38,17 @@ then
5838 exit 1
5939 fi
6040
61-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M
41+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --masq
6242 if [ $? -ne 0 ]
6343 then
64- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M"
44+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --masq"
6545 exit 1
6646 fi
6747
68-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M
48+$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --masq
6949 if [ $? -ne 0 ]
7050 then
71- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M"
72- exit 1
73-fi
74-
75-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -M
76-if [ $? -ne 0 ]
77-then
78- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -M"
79- exit 1
80-fi
81-
82-$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -M
83-if [ $? -ne 0 ]
84-then
85- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -M"
86- exit 1
87-fi
88-
89-
90-
91-$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T
92-if [ $? -ne 0 ]
93-then
94- echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T"
95- exit 1
96-fi
97-
98-$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T
99-if [ $? -ne 0 ]
100-then
101- echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T"
51+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --masq"
10252 exit 1
10353 fi
10454
@@ -116,16 +66,11 @@ then
11666 exit 1
11767 fi
11868
119-
120-
121-
12269 RET=`$L7VSADM -l -n`
12370 EXPECT="Layer-7 Virtual Server version 3.0.0
12471 Prot LocalAddress:Port ProtoMod Scheduler
12572 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
12673 TCP 127.0.0.1:40001 ip rr
127- -> ${RealServer1_ADDR}:${RealServer1_PORT} Tproxy 1 0 0
128- -> ${RealServer2_ADDR}:${RealServer2_PORT} Tproxy 1 0 0
12974 -> ${RealServer3_ADDR}:${RealServer3_PORT} Tproxy 1 0 0
13075 -> ${RealServer4_ADDR}:${RealServer4_PORT} Tproxy 1 0 0 "
13176 if [ "${RET}" != "${EXPECT}" ]
--- a/test/script/l7vsadm/l7vsadm-5-3-15.sh
+++ b/test/script/l7vsadm/l7vsadm-5-3-15.sh
@@ -51,14 +51,6 @@ then
5151 exit 1
5252 fi
5353
54-RET=`$L7VSADM -e -t localhost:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
55-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
56-if [ "${RET}" != "${EXPECT}" ]
57-then
58- echo "Test failed: $L7VSADM -e -t localhost:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M -T"
59- exit 1
60-fi
61-
6254 RET=`$L7VSADM -e -t localhost:40002 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
6355 EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
6456 if [ "${RET}" != "${EXPECT}" ]
@@ -67,30 +59,6 @@ then
6759 exit 1
6860 fi
6961
70-RET=`$L7VSADM -e -t localhost:40003 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
71-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
72-if [ "${RET}" != "${EXPECT}" ]
73-then
74- echo "Test failed: $L7VSADM -e -t localhost:40003 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M --tproxy"
75- exit 1
76-fi
77-
78-RET=`$L7VSADM -e -t localhost:40004 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
79-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
80-if [ "${RET}" != "${EXPECT}" ]
81-then
82- echo "Test failed: $L7VSADM -e -t localhost:40004 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq -T"
83- exit 1
84-fi
85-
86-RET=`$L7VSADM -e -t localhost:40005 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
87-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
88-if [ "${RET}" != "${EXPECT}" ]
89-then
90- echo "Test failed: $L7VSADM -e -t localhost:40005 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M -T"
91- exit 1
92-fi
93-
9462 RET=`$L7VSADM -e -t localhost:40006 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
9563 EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
9664 if [ "${RET}" != "${EXPECT}" ]
@@ -99,21 +67,5 @@ then
9967 exit 1
10068 fi
10169
102-RET=`$L7VSADM -e -t localhost:40007 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
103-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
104-if [ "${RET}" != "${EXPECT}" ]
105-then
106- echo "Test failed: $L7VSADM -e -t localhost:40007 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M --tproxy"
107- exit 1
108-fi
109-
110-RET=`$L7VSADM -e -t localhost:40008 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."`
111-EXPECT="PARSE ERROR: Option --masq/tproxy is conflict."
112-if [ "${RET}" != "${EXPECT}" ]
113-then
114- echo "Test failed: $L7VSADM -e -t localhost:40008 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq -T"
115- exit 1
116-fi
117-
11870 exit 0
11971
--- a/test/script/l7vsadm/l7vsadm-9-1-1.sh
+++ b/test/script/l7vsadm/l7vsadm-9-1-1.sh
@@ -14,16 +14,16 @@ usleep 100000
1414 RET=`$L7VSADM --help`
1515 EXPECT="Usage:
1616 l7vsadm -A -t service-address -m proto-module [module-args]
17- [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]
17+ [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]
1818 [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-z ssl-config-file]
1919 [-O socket-option] [-L access-log-flag] [-a access-log-file [logrotate-args]]
2020 l7vsadm -E -t service-address -m proto-module [module-args]
21- [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]
21+ [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]
2222 [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-L access-log-flag]
2323 l7vsadm -D -t service-address -m proto-module [module-args]
2424 l7vsadm -C
2525 l7vsadm -a|e -t service-address -m proto-module [module-args]
26- -r server-address [-w weight] [-T|M]
26+ -r server-address [-w weight] [--masq|tproxy]
2727 l7vsadm -d -t service-address -m proto-module [module-args]
2828 -r server-address
2929 l7vsadm -R -s replication-switch
@@ -57,13 +57,13 @@ Commands:
5757
5858 Options:
5959 --tcp-service -t service-address service-address is host:port
60- --proto-module -m proto-module protocol module name and module argment
60+ --proto-module -m proto-module protocol module name and module argument
6161 [module-args]
6262 --scheduler -s scheduler one of rr,lc,wrr
6363 --upper -u connection-count maximum number of connections
6464 --bypass -b sorry-server sorry server address is host:port
65- --tproxy -T set sorry server connection to IP transparent mode.
66- --masq -M set sorry server connection to IP masquarade mode.
65+ --tproxy set sorry server connection to IP transparent mode.
66+ --masq set sorry server connection to IP masquerade mode.
6767 --flag -f sorry-flag sorry status set to virtual service
6868 --qos-up -Q QoSval-up QoS Threshold(bps) set to real server direction
6969 --qos-down -q QoSval-down QoS Threshold(bps) set to client direction
@@ -74,8 +74,8 @@ Options:
7474 [logrotate-args]
7575 --real-server -r server-address server-address is host:port
7676 --weight -w weight scheduling weight set to real server
77- --tproxy -T set real server connection to IP transparent mode.
78- --masq -M set real server connection to IP masquarade mode.
77+ --tproxy set real server connection to IP transparent mode.
78+ --masq set real server connection to IP masquerade mode.
7979 --switch -s replication-switch start or stop replication
8080 --force -f force replication start
8181 --dump -d dump replication memory
--- a/test/script/l7vsadm/l7vsadm-9-1-2.sh
+++ b/test/script/l7vsadm/l7vsadm-9-1-2.sh
@@ -14,16 +14,16 @@ usleep 100000
1414 RET=`$L7VSADM -h`
1515 EXPECT="Usage:
1616 l7vsadm -A -t service-address -m proto-module [module-args]
17- [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]
17+ [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]
1818 [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-z ssl-config-file]
1919 [-O socket-option] [-L access-log-flag] [-a access-log-file [logrotate-args]]
2020 l7vsadm -E -t service-address -m proto-module [module-args]
21- [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]
21+ [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]
2222 [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-L access-log-flag]
2323 l7vsadm -D -t service-address -m proto-module [module-args]
2424 l7vsadm -C
2525 l7vsadm -a|e -t service-address -m proto-module [module-args]
26- -r server-address [-w weight] [-T|M]
26+ -r server-address [-w weight] [--masq|tproxy]
2727 l7vsadm -d -t service-address -m proto-module [module-args]
2828 -r server-address
2929 l7vsadm -R -s replication-switch
@@ -57,13 +57,13 @@ Commands:
5757
5858 Options:
5959 --tcp-service -t service-address service-address is host:port
60- --proto-module -m proto-module protocol module name and module argment
60+ --proto-module -m proto-module protocol module name and module argument
6161 [module-args]
6262 --scheduler -s scheduler one of rr,lc,wrr
6363 --upper -u connection-count maximum number of connections
6464 --bypass -b sorry-server sorry server address is host:port
65- --tproxy -T set sorry server connection to IP transparent mode.
66- --masq -M set sorry server connection to IP masquarade mode.
65+ --tproxy set sorry server connection to IP transparent mode.
66+ --masq set sorry server connection to IP masquerade mode.
6767 --flag -f sorry-flag sorry status set to virtual service
6868 --qos-up -Q QoSval-up QoS Threshold(bps) set to real server direction
6969 --qos-down -q QoSval-down QoS Threshold(bps) set to client direction
@@ -74,8 +74,8 @@ Options:
7474 [logrotate-args]
7575 --real-server -r server-address server-address is host:port
7676 --weight -w weight scheduling weight set to real server
77- --tproxy -T set real server connection to IP transparent mode.
78- --masq -M set real server connection to IP masquarade mode.
77+ --tproxy set real server connection to IP transparent mode.
78+ --masq set real server connection to IP masquerade mode.
7979 --switch -s replication-switch start or stop replication
8080 --force -f force replication start
8181 --dump -d dump replication memory
--- a/test/script/l7vsadm/l7vsadm-9-2-1.sh
+++ b/test/script/l7vsadm/l7vsadm-9-2-1.sh
@@ -15,28 +15,33 @@ RET=`$L7VSADM -x 2>&1`
1515 EXPECT="PARSE ERROR: command not found.
1616 Usage:
1717 l7vsadm -A -t service-address -m proto-module [module-args]
18- [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]
18+ [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]
1919 [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-z ssl-config-file]
2020 [-O socket-option] [-L access-log-flag] [-a access-log-file [logrotate-args]]
2121 l7vsadm -E -t service-address -m proto-module [module-args]
22- [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]
22+ [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]
2323 [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-L access-log-flag]
2424 l7vsadm -D -t service-address -m proto-module [module-args]
2525 l7vsadm -C
2626 l7vsadm -a|e -t service-address -m proto-module [module-args]
27- -r server-address [-w weight] [-T|M]
27+ -r server-address [-w weight] [--masq|tproxy]
2828 l7vsadm -d -t service-address -m proto-module [module-args]
2929 -r server-address
3030 l7vsadm -R -s replication-switch
3131 l7vsadm -R -f
3232 l7vsadm -R -d
3333 l7vsadm -L -c log-category -l log-level
34- l7vsadm -S -c log-category -l log-level
34+ l7vsadm -S [-f snmp-flag] [-i update-interval] [-t log-trap-flag] [-l log-trap-level]
35+ l7vsadm -S -r [-t service-address -m proto-module]
3536 l7vsadm -P -r reload-parameter
3637 l7vsadm -l [-n]
3738 l7vsadm -V [-n]
3839 l7vsadm -K [-n]
3940 l7vsadm -h"
41+
42+echo "$RET">/tmp/1
43+echo "$EXPECT">/tmp/2
44+diff -u /tmp/1 /tmp/2
4045 if [ "${RET}" != "${EXPECT}" ]
4146 then
4247 echo "Test failed: $L7VSADM -x"
--- a/test/script/session/session-76-1.sh
+++ b/test/script/session/session-76-1.sh
@@ -29,10 +29,10 @@ then
2929 exit 1
3030 fi
3131
32-$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M
32+$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq
3333 if [ $? -ne 0 ]
3434 then
35- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M"
35+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq"
3636 exit 1
3737 fi
3838
--- a/test/script/session/session-76-2.sh
+++ b/test/script/session/session-76-2.sh
@@ -29,10 +29,10 @@ then
2929 exit 1
3030 fi
3131
32-$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M
32+$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq
3333 if [ $? -ne 0 ]
3434 then
35- echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M"
35+ echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq"
3636 exit 1
3737 fi
3838
--- a/test/script/session/session-77-1.sh
+++ b/test/script/session/session-77-1.sh
@@ -29,10 +29,10 @@ then
2929 exit 1
3030 fi
3131
32-$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T
32+$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy
3333 if [ $? -ne 0 ]
3434 then
35- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T"
35+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy"
3636 exit 1
3737 fi
3838
--- a/test/script/session/session-77-2.sh
+++ b/test/script/session/session-77-2.sh
@@ -29,10 +29,10 @@ then
2929 exit 1
3030 fi
3131
32-$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T
32+$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy
3333 if [ $? -ne 0 ]
3434 then
35- echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T"
35+ echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy"
3636 exit 1
3737 fi
3838
--- a/test/script/session/session-78-1.sh
+++ b/test/script/session/session-78-1.sh
@@ -22,10 +22,10 @@ fi
2222 usleep 100000
2323
2424 # Add service
25-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M
25+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq
2626 if [ $? -ne 0 ]
2727 then
28- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M
28+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq
2929 "
3030 exit 1
3131 fi
--- a/test/script/session/session-78-2.sh
+++ b/test/script/session/session-78-2.sh
@@ -22,10 +22,10 @@ fi
2222 usleep 100000
2323
2424 # Add service
25-$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M
25+$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq
2626 if [ $? -ne 0 ]
2727 then
28- echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M
28+ echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq
2929 "
3030 exit 1
3131 fi
--- a/test/script/session/session-79-1.sh
+++ b/test/script/session/session-79-1.sh
@@ -22,10 +22,10 @@ fi
2222 usleep 100000
2323
2424 # Add service
25-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T
25+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy
2626 if [ $? -ne 0 ]
2727 then
28- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T
28+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy
2929 "
3030 exit 1
3131 fi
--- a/test/script/session/session-79-2.sh
+++ b/test/script/session/session-79-2.sh
@@ -22,10 +22,10 @@ fi
2222 usleep 100000
2323
2424 # Add service
25-$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T
25+$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy
2626 if [ $? -ne 0 ]
2727 then
28- echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T
28+ echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy
2929 "
3030 exit 1
3131 fi
--- a/test/script/session/session-80-1.sh
+++ b/test/script/session/session-80-1.sh
@@ -29,10 +29,10 @@ then
2929 exit 1
3030 fi
3131
32-$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M
32+$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq
3333 if [ $? -ne 0 ]
3434 then
35- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M"
35+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq"
3636 exit 1
3737 fi
3838
--- a/test/script/session/session-80-2.sh
+++ b/test/script/session/session-80-2.sh
@@ -29,10 +29,10 @@ then
2929 exit 1
3030 fi
3131
32-$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M
32+$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq
3333 if [ $? -ne 0 ]
3434 then
35- echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M"
35+ echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq"
3636 exit 1
3737 fi
3838
--- a/test/script/session/session-81-1.sh
+++ b/test/script/session/session-81-1.sh
@@ -29,10 +29,10 @@ then
2929 exit 1
3030 fi
3131
32-$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T
32+$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy
3333 if [ $? -ne 0 ]
3434 then
35- echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T"
35+ echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy"
3636 exit 1
3737 fi
3838
--- a/test/script/session/session-81-2.sh
+++ b/test/script/session/session-81-2.sh
@@ -29,10 +29,10 @@ then
2929 exit 1
3030 fi
3131
32-$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T
32+$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy
3333 if [ $? -ne 0 ]
3434 then
35- echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T"
35+ echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy"
3636 exit 1
3737 fi
3838
--- a/test/script/session/session-82-1.sh
+++ b/test/script/session/session-82-1.sh
@@ -22,10 +22,10 @@ fi
2222 usleep 100000
2323
2424 # Add service
25-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf
25+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf
2626 if [ $? -ne 0 ]
2727 then
28- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf"
28+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf"
2929 exit 1
3030 fi
3131
--- a/test/script/session/session-82-2.sh
+++ b/test/script/session/session-82-2.sh
@@ -22,10 +22,10 @@ fi
2222 usleep 100000
2323
2424 # Add service
25-$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf
25+$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf
2626 if [ $? -ne 0 ]
2727 then
28- echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf"
28+ echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf"
2929 exit 1
3030 fi
3131
--- a/test/script/session/session-83-1.sh
+++ b/test/script/session/session-83-1.sh
@@ -22,10 +22,10 @@ fi
2222 usleep 100000
2323
2424 # Add service
25-$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf
25+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf
2626 if [ $? -ne 0 ]
2727 then
28- echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf"
28+ echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf"
2929 exit 1
3030 fi
3131
--- a/test/script/session/session-83-2.sh
+++ b/test/script/session/session-83-2.sh
@@ -22,10 +22,10 @@ fi
2222 usleep 100000
2323
2424 # Add service
25-$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf
25+$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf
2626 if [ $? -ne 0 ]
2727 then
28- echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf"
28+ echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf"
2929 exit 1
3030 fi
3131