#!/bin/bash
. ${SET_DEFAULT_CONF}
-\cp ./materials/l7directord-48-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf
+\cp ./materials/l7directord-1-3-14-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf
# Start l7vsd
$L7VSD
However, if a\bau\but\bto\bor\bre\bel\blo\boa\bad\bd is set to y\bye\bes\bs, the configuration is reloaded
anyway.
- f\bfa\bal\bll\blb\bba\bac\bck\bk =\b= _\bi_\bp_\b__\ba_\bd_\bd_\br_\be_\bs_\bs_\b|_\bh_\bo_\bs_\bt_\bn_\ba_\bm_\be_\b[_\b:_\bp_\bo_\br_\bt_\bn_\bu_\bm_\bb_\be_\br_\b|_\bs_\be_\br_\bv_\bi_\bc_\be_\bn_\ba_\bm_\be_\b] [m\bma\bas\bsq\bq]
+ f\bfa\bal\bll\blb\bba\bac\bck\bk =\b= _\bi_\bp_\b__\ba_\bd_\bd_\br_\be_\bs_\bs_\b|_\bh_\bo_\bs_\bt_\bn_\ba_\bm_\be_\b[_\b:_\bp_\bo_\br_\bt_\bn_\bu_\bm_\bb_\be_\br_\b|_\bs_\be_\br_\bv_\bi_\bc_\be_\bn_\ba_\bm_\be_\b] [m\bma\bas\bsq\bq|t\btp\bpr\bro\box\bxy\by]
the server onto which a web service is redirected if all real
servers are down. Typically this would be 127.0.0.1 with an
emergency page.
This directive may also appear within a virtual server, in which
- case it will override the global fallback server, if set. Only a
- value of m\bma\bas\bsq\bq can be specified here. The default is _\bm_\ba_\bs_\bq.
+ case it will override the global fallback server, if set. Also you
+ can set either m\bma\bas\bsq\bq or t\btp\bpr\bro\box\bxy\by as fallback forwarding mechanism. The
+ default is m\bma\bas\bsq\bq.
l\blo\bog\bgf\bfi\bil\ble\be =\b= "\b"_\b/_\bp_\ba_\bt_\bh_\b/_\bt_\bo_\b/_\bl_\bo_\bg_\bf_\bi_\bl_\be"\b"|syslog_facility
An alternative logfile might be specified with this directive. If
r\bre\bea\bal\bl =\b=
_\bi_\bp_\b__\ba_\bd_\bd_\br_\be_\bs_\bs_\b|_\bh_\bo_\bs_\bt_\bn_\ba_\bm_\be_\b[_\b-_\b>_\bi_\bp_\b__\ba_\bd_\bd_\br_\be_\bs_\bs_\b|_\bh_\bo_\bs_\bt_\bn_\ba_\bm_\be_\b]_\b[_\b:_\bp_\bo_\br_\bt_\bn_\bu_\bm_\bb_\be_\br_\b|_\bs_\be_\br_\bv_\bi_\bc_\be_\bn_\ba_\bm_\be]
- [m\bma\bas\bsq\bq] [_\bn] ["\b"_\br_\be_\bq_\bu_\be_\bs_\bt"\b",\b, "\b"_\br_\be_\bc_\be_\bi_\bv_\be"\b"]
+ [m\bma\bas\bsq\bq|t\btp\bpr\bro\box\bxy\by] [_\bn] ["\b"_\br_\be_\bq_\bu_\be_\bs_\bt"\b",\b, "\b"_\br_\be_\bc_\be_\bi_\bv_\be"\b"]
Defines a real service by IP-address (or hostname) and port (or
servicename). If the port is omitted then a 0 will be used.
Optionally a range of IP addresses (or two hostnames) may be given,
in which case each IP address in the range will be treated as a
real server using the given port. The second argument defines the
- forwarding method, it must be m\bma\bas\bsq\bq only. The third argument
- defines the weight of each real service. This argument is optional.
- Default is 1. The last two arguments are optional too. They define
- a request-receive pair to be used to check if a server is alive.
- They override the request-receive pair in the virtual server
- section. These two strings must be quoted. If the request string
- starts with _\bh_\bt_\bt_\bp_\b:_\b/_\b/_\b._\b._\b. the IP-address and port of the real server
- is overridden, otherwise the IP-address and port of the real server
- is used.
+ forwarding mechanism, it must be m\bma\bas\bsq\bq or t\btp\bpr\bro\box\bxy\by. The third
+ argument defines the weight of each real service. This argument is
+ optional. Default is 1. The last two arguments are optional too.
+ They define a request-receive pair to be used to check if a server
+ is alive. They override the request-receive pair in the virtual
+ server section. These two strings must be quoted. If the request
+ string starts with _\bh_\bt_\bt_\bp_\b:_\b/_\b/_\b._\b._\b. the IP-address and port of the real
+ server is overridden, otherwise the IP-address and port of the real
+ server is used.
m\bmo\bod\bdu\bul\ble\be =\b= _\bp_\br_\bo_\bt_\bo_\b-_\bm_\bo_\bd_\bu_\bl_\be _\bm_\bo_\bd_\bu_\bl_\be_\b-_\ba_\br_\bg_\bs _\b[_\bo_\bp_\bt_\b-_\bm_\bo_\bd_\bu_\bl_\be_\b-_\ba_\br_\bg_\bs_\b]
Indicates the module parameter of l\bl7\b7d\bdi\bir\bre\bec\bct\bto\bor\brd\bd. Here p\bpr\bro\bot\bto\bo-\b-m\bmo\bod\bdu\bul\ble\be
-perl v5.10.1 2010-08-05 L7DIRECTORD(1)
-
+perl v5.10.1 2010-09-10 L7DIRECTORD(1)
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "verify_cert_depth = 5"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "verify_cert_depth = 5"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "ca_file = Temp_root.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "ca_file = Temp_root.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "verify_options = 3"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "verify_options = 3"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "verify_cert_depth = 5"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "verify_cert_depth = 5"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "verify_cert_depth = 5"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "verify_cert_depth = 5"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "cert_chain_dir = /etc/l7vs/ sslproxy/, cert_chain_file = server.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "cert_chain_dir = /etc/l7vs/ sslproxy/, cert_chain_file = server.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
fi
#Connect
-RET=`wget -t 1 -T 1 -O- https://127.0.0.1:40001/ --no-check-certificate`
+RET=`wget -t 1 -O- https://127.0.0.1:40001/ --no-check-certificate`
if [ $? -eq 0 ]
then
echo "Test failed: wget -qO- -t 1 http://127.0.0.1:40001/ "
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "ca_dir = /etc/l7vs/sslproxy/cert/" | grep " ca_file = ,"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "ca_dir = /etc/l7vs/sslproxy/cert/" | grep " ca_file = ,"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "ca_dir = /etc/l7vs/sslproxy/" | grep " ca_file = root.pem,"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "ca_dir = /etc/l7vs/sslproxy/" | grep " ca_file = root.pem,"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "private_key_dir = /etc/l7vs/sslproxy/, private_key_file = server.pem, private_key_filetype = 1"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "private_key_dir = /etc/l7vs/sslproxy/, private_key_file = server.pem, private_key_filetype = 1"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
RET=`wget -O- https://127.0.0.1:40001/ --certificate=./materials/session-53-newcert.pem --private-key=./materials/session-53-newkey.pem --no-check-certificate`
EXPECT="${RealServer1}"
-echo "$RET"
if [ "${RET}" != "${EXPECT}" ]
then
echo "Test failed: wget -qO- https://127.0.0.1:40001/ --certificate=newcert.pem --private-key=newkey.pem --no-check-certificate"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "private_key_dir = /etc/l7vs/sslproxy/cert/, private_key_file = newkey.der, private_key_filetype = 0"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "private_key_dir = /etc/l7vs/sslproxy/cert/, private_key_file = newkey.der, private_key_filetype = 0"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "cert_chain_dir = /etc/l7vs/sslproxy/, cert_chain_file = server.pem, private_key_dir = /etc/l7vs/sslproxy/, private_key_file = server.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "cert_chain_dir = /etc/l7vs/sslproxy/, cert_chain_file = server.pem, private_key_dir = /etc/l7vs/sslproxy/, private_key_file = server.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "cert_chain_dir = /etc/l7vs/sslproxy/cert/, cert_chain_file = server.crt, private_key_dir = /etc/l7vs/sslproxy/cert/, private_key_file = newkey.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "cert_chain_dir = /etc/l7vs/sslproxy/cert/, cert_chain_file = server.crt, private_key_dir = /etc/l7vs/sslproxy/cert/, private_key_file = newkey.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "ssl_options = 1048576, tmp_dh_dir = /etc/l7vs/sslproxy/, tmp_dh_file = dh512.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "ssl_options = 1048576, tmp_dh_dir = /etc/l7vs/sslproxy/, tmp_dh_file = dh512.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "ssl_options = 1048576, tmp_dh_dir = /etc/l7vs/sslproxy/, tmp_dh_file = dh1024.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "ssl_options = 1048576, tmp_dh_dir = /etc/l7vs/sslproxy/, tmp_dh_file = dh1024.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700100 in_function : int virtualservice_tcp::conv_verify_option(std::string opt_string) : opt_string = SSL_VERIFY_NONE"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700100 in_function: int virtualservice_tcp::conv_verify_option(std::string opt_string): opt_string = SSL_VERIFY_NONE"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "verify_options = 0"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "verify_options = 0"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "verify_options = 1"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "verify_options = 1"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "verify_options = 1"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "verify_options = 1"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "verify_options = 3"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "verify_options = 3"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function : bool virtualservice_tcp::get_ssl_parameter() :" | grep "verify_options = 3"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function: bool virtualservice_tcp::get_ssl_parameter():" | grep "verify_options = 3"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
Access_log_rotate option
-> RemoteAddress:Port Forward Weight ActiveConn InactConn
TCP localhost:40001 sessionless wrr --sorry-uri '/'
- localhost:50001 10 0
+ localhost:50001(Masq) 10 0
100000000 0
100000000 0
none
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "private_key_filetype = 2"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "private_key_filetype = 2"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function :" |grep "Verify mode\[0\]"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function:" |grep "Verify mode\[0\]"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function :" |grep "Verify mode\[1\]"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function:" |grep "Verify mode\[1\]"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function :" |grep "Verify mode\[2\]"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function:" |grep "Verify mode\[2\]"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function :" |grep "Verify mode\[4\]"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function:" |grep "Verify mode\[4\]"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function :" |grep "Verify mode\[7\]"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700117 out_function:" |grep "Verify mode\[7\]"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "verify_cert_depth = 99"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "verify_cert_depth = 99"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "ssl_options = 1048576"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "ssl_options = 1048576"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "ssl_options = 16777216"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "ssl_options = 16777216"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "ssl_options = 17825792"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "ssl_options = 17825792"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
Access_log_rotate option
-> RemoteAddress:Port Forward Weight ActiveConn InactConn
TCP localhost:40001 ip lc --timeout 3600 --no-reschedule --sorry-uri '/'
- localhost:50001 200 0
+ localhost:50001(Masq) 200 0
1000000 0
1000000 0
none
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "tmp_dh_dir = /etc/l7vs/sslproxy/"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "tmp_dh_dir = /etc/l7vs/sslproxy/"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "tmp_dh_file = dh512.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "tmp_dh_file = dh512.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "tmp_dh_file = dh512.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "tmp_dh_file = dh512.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "tmp_dh_file = dh1024.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "tmp_dh_file = dh1024.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set tmp DH file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set tmp DH file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set tmp DH file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set tmp DH file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set tmp DH file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set tmp DH file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set tmp DH file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set tmp DH file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "cipher_list = ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "cipher_list = ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "session_cache_mode = 130"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "session_cache_mode = 130"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "session_cache_mode = 0"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "session_cache_mode = 0"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "session_cache_size = 40960"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "session_cache_size = 40960"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "session_cache_size = 20480"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "session_cache_size = 20480"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "session_cache_size = 20480"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "session_cache_size = 20480"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "session_cache_timeout = 600"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "session_cache_timeout = 600"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "session_cache_timeout = 300"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "session_cache_timeout = 300"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "session_cache_timeout = 300"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "session_cache_timeout = 300"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
fi
}
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "SSL session cache information : Session number\[0\]"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "SSL session cache information: Session number\[0\]"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
fi
}
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "SSL session cache information : Session number\[2\]"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "SSL session cache information: Session number\[2\]"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
fi
}
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "SSL session cache information : Session number\[2\]"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "SSL session cache information: Session number\[2\]"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "SSL session cache information : Session number\[0\]"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "SSL session cache information: Session number\[0\]"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
Access_log_rotate option
-> RemoteAddress:Port Forward Weight ActiveConn InactConn
TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/'
- 127.0.0.1:50001 0 0
+ 127.0.0.1:50001(Masq) 0 0
0 0
0 0
none
Access_log_rotate option
-> RemoteAddress:Port Forward Weight ActiveConn InactConn
TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/'
- 127.0.0.1:50001 0 0
+ 127.0.0.1:50001(Masq) 0 0
0 0
0 0
none
usleep 100000
#Connect
-RET=`$WGET -t 1 -qO- http://127.0.0.1:40001/`
+RET=`wget -t 1 -qO- http://127.0.0.1:40001/`
if [ "${RET}" != "${SorryServer1}" ]
then
- echo "Test failed: $WGET -t 1 -qO- http://127.0.0.1:40001/"
+ echo "Test failed: wget -t 1 -qO- http://127.0.0.1:40001/"
exit 1
fi
usleep 100000
RET=`$L7VSADM -A -t 127.0.0.1:40001 -m sslid -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target.cf 2>&1 | grep "PARSE ERROR:"`
-EXPECT="PARSE ERROR: When \"protocol_module sslid\" was designated, it isn't possible to designate \"-z\" option."
+EXPECT="PARSE ERROR: You cannot set \"-z\" option with \"sslid\" protocol module."
if [ "${RET}" != "${EXPECT}" ]
then
echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sslid -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target.cf"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "handshake_timeout = 20"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "handshake_timeout = 20"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "handshake_timeout = 30"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "handshake_timeout = 30"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "handshake_timeout = 30"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "handshake_timeout = 30"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "handshake_timeout = 30"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "handshake_timeout = 30"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" | grep "handshake_timeout = 30"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" | grep "handshake_timeout = 30"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set root CA file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set root CA file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set root CA file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set root CA file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set certificate chain file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set certificate chain file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set certificate chain file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set certificate chain file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :"|grep "cert_chain_dir = /etc/l7vs/sslproxy/, cert_chain_file = server.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:"|grep "cert_chain_dir = /etc/l7vs/sslproxy/, cert_chain_file = server.pem"`
if [ -z "${RET}" ]
then
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set certificate chain file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set certificate chain file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set certificate chain file error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set certificate chain file error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "private_key_dir = /etc/l7vs/sslproxy/"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "private_key_dir = /etc/l7vs/sslproxy/"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "private_key_file = server.pem"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "private_key_file = server.pem"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error : Invalid argument."`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[ERROR\] l7vsd_virtualservice VSD40700999 Set private key file and filetype error: Invalid argument."`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"
exit 1
fi
-RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function :" |grep "private_key_filetype = 1"`
+RET=`cat ${L7VS_LOG_DIR}/l7vsd.log | grep "\[DEBUG\] l7vsd_virtualservice VSD10700105 out_function:" |grep "private_key_filetype = 1"`
if [ -z "${RET}" ]
then
echo "Test failed: cat ${L7VS_LOG_DIR}/l7vsd.log"