From 7f498e2b3876f4ec2ed3755e4ee47c427dd9c32a Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 25 Feb 2022 11:09:08 +0100 Subject: [PATCH] net/templates/run.sh: only one variable for mgw Prepare to add another MGW for the BSCNAT. Use only one variable for the mgw, always append the -c configfile parameter further below in the script where it gets used. Change-Id: I6f3fe11109107b35059ebe731e0a74a91a04504c --- net/templates/run.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/net/templates/run.sh b/net/templates/run.sh index c19c081..29e5347 100755 --- a/net/templates/run.sh +++ b/net/templates/run.sh @@ -185,10 +185,9 @@ msc="gdb -ex run --args $(which osmo-msc)" gbproxy="osmo-gbproxy" sgsn="osmo-sgsn" ggsn="osmo-ggsn" -mgw4msc="osmo-mgw -c osmo-mgw-for-msc.cfg" -#mgw4bsc="gdb -ex run --args osmo-mgw" -#mgw4bsc="strace osmo-mgw" -mgw4bsc="osmo-mgw" +#mgw="gdb -ex run --args osmo-mgw" +#mgw="strace osmo-mgw" +mgw="osmo-mgw" hlr="LD_LIBRARY_PATH=/usr/local/lib gdb -ex run --args osmo-hlr --db-upgrade" stp4cn="osmo-stp -c osmo-stp-cn.cfg" stp4ran="osmo-stp -c osmo-stp-ran.cfg" @@ -255,17 +254,17 @@ if [ "${GBPROXY_RUN_IN_OSMO_DEV}" = 1 ]; then term "$gbproxy" GBPROXY fi -term "$mgw4msc" MGW4MSC +term "$mgw -c osmo-mgw-for-msc.cfg" MGW4MSC term "$msc" MSC term "$hnbgw" HNBGW if [ "$BSC_COUNT" = 1 ]; then - term "$mgw4bsc -c osmo-mgw-for-bsc-0.cfg" MGW4BSC + term "$mgw -c osmo-mgw-for-bsc-0.cfg" MGW4BSC term "$bsc -c osmo-bsc-0.cfg" BSC else - term "$mgw4bsc -c osmo-mgw-for-bsc-0.cfg" MGW4BSC0 - term "$mgw4bsc -c osmo-mgw-for-bsc-1.cfg" MGW4BSC1 + term "$mgw -c osmo-mgw-for-bsc-0.cfg" MGW4BSC0 + term "$mgw -c osmo-mgw-for-bsc-1.cfg" MGW4BSC1 term "$bsc -c osmo-bsc-0.cfg" BSC0 term "$bsc -c osmo-bsc-1.cfg" BSC1 fi