[PATCH] osmo-ttcn3-hacks[master]: sgsn: Reduce logging verbosity of IPA/GSUP/NS/BSSGP

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Feb 18 18:50:18 UTC 2018


Review at  https://gerrit.osmocom.org/6579

sgsn: Reduce logging verbosity of IPA/GSUP/NS/BSSGP

Change-Id: I55d1299ceaad1257959b298741a7321faacc4b45
---
M sgsn/SGSN_Tests.default
M sgsn/SGSN_Tests.ttcn
2 files changed, 10 insertions(+), 4 deletions(-)


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

diff --git a/sgsn/SGSN_Tests.default b/sgsn/SGSN_Tests.default
index 256c9c9..6d120fb 100644
--- a/sgsn/SGSN_Tests.default
+++ b/sgsn/SGSN_Tests.default
@@ -1,5 +1,11 @@
 [LOGGING]
+FileMask := LOG_ALL | TTCN_MATCHING;
+
 "IPA-CTRL-IPA".FileMask := ERROR | WARNING;
+"SGSN_Test-GSUP-IPA".FileMask := ERROR | WARNING;
+"SGSN_Test-Gb0-NS".FileMask := ERROR | WARNING;
+"SGSN_Test-Gb0-BSSGP".FileMask := ERROR | WARNING;
+"SGSN_Test-GSUP".FileMask := ERROR | WARNING;
 
 [TESTPORT_PARAMETERS]
 *.SGSNVTY.CTRL_MODE := "client"
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index a381692..a02d3a9 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -92,9 +92,9 @@
 	float t_guard
 };
 
-private function f_init_gb(inout GbInstance gb) runs on test_CT {
-	gb.vc_NS := NS_CT.create;
-	gb.vc_BSSGP := BSSGP_CT.create;
+private function f_init_gb(inout GbInstance gb, charstring id) runs on test_CT {
+	gb.vc_NS := NS_CT.create(id & "-NS");
+	gb.vc_BSSGP := BSSGP_CT.create(id & "-BSSGP");
 	/* connect lower end of BSSGP emulation with NS upper port */
 	connect(gb.vc_BSSGP:BSCP, gb.vc_NS:NS_SP);
 	/* connect lower end of NS emulation to NS codec port (on top of IPL4) */
@@ -175,7 +175,7 @@
 		sgsn_role := false
 	};
 
-	f_init_gb(g_gb[0]);
+	f_init_gb(g_gb[0], "SGSN_Test-Gb0");
 	f_init_gsup("SGSN_Test");
 	f_init_gtp("SGSN_Test");
 	f_init_vty();

-- 
To view, visit https://gerrit.osmocom.org/6579
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I55d1299ceaad1257959b298741a7321faacc4b45
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>


More information about the gerrit-log mailing list