osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-dev/+/27454 )

Change subject: net/templates/run.sh: only one variable for mgw
......................................................................

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
---
M net/templates/run.sh
1 file changed, 7 insertions(+), 8 deletions(-)

Approvals:
  osmith: Looks good to me, approved; Verified



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 @@
 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 @@
   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

--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/27454
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I6f3fe11109107b35059ebe731e0a74a91a04504c
Gerrit-Change-Number: 27454
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-MessageType: merged

Reply via email to