aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
diff options
context:
space:
mode:
authorTamasBakai <tamas.bakai@est.tech>2019-07-11 11:26:20 +0000
committerTamasBakai <tamas.bakai@est.tech>2019-07-11 11:26:20 +0000
commite781c7c4e4e385f504254d0fd32f534d559af3c2 (patch)
treed60321ac80db4f9513a5096d7055866bbe1dab03 /test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
parente21a3c642c913a777c45b1e2c80d9cf8d32ec0c2 (diff)
Mass PNF-sim unique VSFTPD PASV ports
Issue-ID: DCAEGEN2-1660 Change-Id: Ib742755f6a924ee9c5babe8e411311e7fe0e6802 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
Diffstat (limited to 'test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh')
-rwxr-xr-xtest/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
index f4435aa18..3de96dafe 100755
--- a/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
+++ b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
@@ -20,8 +20,8 @@ function main(){
case $COMMAND in
"compose")
- compose $2 $3 $4 $5 $6 $7 $8 $9 "${10}" "${11}" "${12}" ;;
- #IPGW, #IPSUBNET, #I, #URLVES, #IPPNFSIM, #IPFILESERVER, #TYPEFILESERVER, #PORTSFTP, #PORTFTPS, #IPFTPS, #IPSFTP
+ compose $2 $3 $4 $5 $6 $7 $8 $9 "${10}" "${11}" "${12}" "${13}" "${14}" ;;
+ #IPGW, #IPSUBNET, #I, #URLVES, #IPPNFSIM, #IPFILESERVER, #TYPEFILESERVER, #PORTSFTP, #PORTFTPS, #IPFTPS, #IPSFTP, #FTPS_PASV_MIN, #FTPS_PAST_MAX
"build")
build_image;;
"start")
@@ -63,7 +63,7 @@ function get_pnfsim_ip() {
function compose(){
#creating custom docker-compose based on IP arguments
#creting config.json by injecting the same IP
-
+
export IPGW=$1
export IPSUBNET=$2
export I=$3
@@ -75,6 +75,8 @@ function compose(){
export PORTFTPS=$9
export IPFTPS=${10}
export IPSFTP=${11}
+ export FTPS_PASV_MIN=${12}
+ export FTPS_PASV_MAX=${13}
LOCALTIME=$(ls -l /etc/localtime)
export TIMEZONE=${LOCALTIME//*zoneinfo\/}
@@ -87,10 +89,14 @@ function compose(){
./ROP_file_creator.sh $I &
- set_vsftpd_file_owner
-
write_config $URLVES $IPFILESERVER $TYPEFILESERVER $PORTSFTP $PORTFTPS $IPPNFSIM
+ cd config
+ envsubst < vsftpd_ssl-TEMPLATE.conf > vsftpd_ssl.conf
+ cd -
+
+ set_vsftpd_file_owner
+
}
function build_image(){