Change in ...osmo-ttcn3-hacks[master]: sgsn: update configs for running without docker

osmith gerrit-no-reply at lists.osmocom.org
Fri Aug 30 10:09:08 UTC 2019


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15350


Change subject: sgsn: update configs for running without docker
......................................................................

sgsn: update configs for running without docker

Base on docker-playground.git's ttcn3-sgsn-test/*.cfg files, change IPs
to 127.0.0.* (keep last octet), log to stderr, disable colors in logs.
The reasoning behind the IP change is, that using almost the same IP as
in the docker configs makes it easier to compare the configs.

Change-Id: I15b5a943e9c665dfd4eb6b30bff84afc8adeb4a2
---
M sgsn/SGSN_Tests.cfg
M sgsn/osmo-sgsn.cfg
A sgsn/osmo-stp.cfg
3 files changed, 72 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/50/15350/1

diff --git a/sgsn/SGSN_Tests.cfg b/sgsn/SGSN_Tests.cfg
index 8782845..5167750 100644
--- a/sgsn/SGSN_Tests.cfg
+++ b/sgsn/SGSN_Tests.cfg
@@ -9,8 +9,30 @@
 [LOGGING]
 
 [TESTPORT_PARAMETERS]
+*.SGSNVTY.CTRL_HOSTNAME := "127.0.0.10"
 
 [MODULE_PARAMETERS]
+SGSN_Tests.mp_nsconfig := {
+	{
+		local_ip := "127.0.0.103",
+		remote_ip := "127.0.0.10"
+	},
+	{
+		local_ip := "127.0.0.103",
+		remote_ip := "127.0.0.10"
+	},
+	{
+		local_ip := "127.0.0.103",
+		remote_ip := "127.0.0.10"
+	}
+}
+SGSN_Tests.mp_ranap_cfg := {
+	{
+		sctp_addr := { 23908, "127.0.0.103", 2905, "127.0.0.200" }
+	}
+}
+SGSN_Tests.mp_hlr_ip := "127.0.0.103"
+SGSN_Tests.mp_ggsn_ip := "127.0.0.103"
 
 [MAIN_CONTROLLER]
 
diff --git a/sgsn/osmo-sgsn.cfg b/sgsn/osmo-sgsn.cfg
index 09da510..de391fb 100644
--- a/sgsn/osmo-sgsn.cfg
+++ b/sgsn/osmo-sgsn.cfg
@@ -4,7 +4,7 @@
 !
 log stderr
  logging filter all 1
- logging color 1
+ logging color 0
  logging print category 1
  logging timestamp 1
  logging print extended-timestamp 1
@@ -28,10 +28,17 @@
 !
 line vty
  no login
- bind 127.0.0.1
+ bind 127.0.0.10
 ctrl
- bind 127.0.0.1
+ bind 127.0.0.10
 !
+cs7 instance 0
+ point-code 0.23.4
+ asp asp-clnt-OsmoSGSN-A 2905 0 m3ua
+  remote-ip 127.0.0.200
+ as as-clnt-OsmoSGSN-A m3ua
+  asp asp-clnt-OsmoSGSN-A
+  routing-key 3 0.23.4
 ns
  timer tns-block 3
  timer tns-block-retries 3
@@ -40,15 +47,15 @@
  timer tns-test 30
  timer tns-alive 3
  timer tns-alive-retries 10
- encapsulation udp local-ip 127.0.0.1
+ encapsulation udp local-ip 127.0.0.10
  encapsulation udp local-port 23000
  encapsulation framerelay-gre enabled 0
 bssgp
 sgsn
- gtp local-ip 127.0.0.1
- ggsn 0 remote-ip 127.0.0.2
+ gtp local-ip 127.0.0.10
+ ggsn 0 remote-ip 127.0.0.103
  ggsn 0 gtp-version 1
- gsup remote-ip 127.0.0.1
+ gsup remote-ip 127.0.0.103
  gsup remote-port 4222
  auth-policy remote
  gsup oap-id 0
diff --git a/sgsn/osmo-stp.cfg b/sgsn/osmo-stp.cfg
new file mode 100644
index 0000000..ef9904b
--- /dev/null
+++ b/sgsn/osmo-stp.cfg
@@ -0,0 +1,36 @@
+!
+! OsmoSTP (0.8.1) configuration saved from vty
+!!
+!
+log gsmtap 127.0.0.1
+ logging level set-all debug
+!
+log stderr
+ logging color 0
+ logging filter all 1
+ logging print level 1
+ logging print category 1
+ logging print category-hex 0
+ logging print file basename last
+ logging print extended-timestamp 1
+ logging level set-all debug
+!
+line vty
+ no login
+!
+cs7 instance 0
+ xua rkm routing-key-allocation dynamic-permitted
+ asp virt-rnc0-0 23908 2905 m3ua
+  local-ip 127.0.0.200
+  remote-ip 127.0.0.103
+ as virt-rnc0 m3ua
+  asp virt-rnc0-0
+  routing-key 2 0.24.3
+ route-table system
+  update route 0.24.3 7.255.7 linkset virt-rnc0
+ listen m3ua 2905
+  local-ip 127.0.0.200
+  accept-asp-connections dynamic-permitted
+ listen ipa 5000
+  local-ip 127.0.0.200
+  accept-asp-connections dynamic-permitted

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I15b5a943e9c665dfd4eb6b30bff84afc8adeb4a2
Gerrit-Change-Number: 15350
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190830/ff80578b/attachment.html>


More information about the gerrit-log mailing list