ttcn3-pcu-test: Change config to support statsd

Change-Id: I2779cdb4ec7cac891aa86e3fefa739e61f867691
Depends: osmo-ttcn3-hacks.git Change-Id I90964b32fa11ed2582afc5fb56bd302b06606f86
Related: SYS#4877
This commit is contained in:
Daniel Willmann 2020-09-21 14:02:17 +02:00
parent 92b653170d
commit 01caeb1226
4 changed files with 26 additions and 1 deletions

View File

@ -7,9 +7,13 @@
[TESTPORT_PARAMETERS]
*.PCUVTY.CTRL_HOSTNAME := "172.18.13.101"
*.PCUVTY.PROMPT1 := "OsmoPCU> "
*.STATSVTY.CTRL_HOSTNAME := "172.18.13.101"
*.STATSVTY.PROMPT1 := "OsmoPCU> "
[MODULE_PARAMETERS]
PCU_Tests.mp_pcu_sock_path := "/data/unix/pcu_bts"
PCU_Tests.mp_pcu_statsd_ip := "172.18.13.10"
SGSN_Components.mp_nsconfig := {
address_family := AF_INET,
local_ip := "172.18.13.10",
@ -20,6 +24,7 @@ SGSN_Components.mp_nsconfig := {
nsei := 1234
}
Osmocom_VTY_Functions.mp_prompt_prefix := "OsmoPCU";
StatsD_Checker.mp_enable_stats := true;
[MAIN_CONTROLLER]

View File

@ -24,6 +24,11 @@ if [ "$IMAGE_SUFFIX" = "latest" ]; then
# PCUIFv10 is not yet supported in the latest release
sed "/\[MODULE_PARAMETERS\]/ a PCUIF_Types.mp_pcuif_version := 9;" \
-i "$VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg"
# Disable stats testing until libosmocore release > 1.4.0
sed -i "s/^StatsD_Checker.mp_enable_stats.*/StatsD_Checker.mp_enable_stats := false;/" $VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg
sed -i "s/stats interval 0//" $VOL_BASE_DIR/pcu/osmo-pcu.cfg
sed -i "s/flush-period 1//" $VOL_BASE_DIR/pcu/osmo-pcu.cfg
fi
echo Starting container with PCU

View File

@ -24,6 +24,11 @@ if [ "$IMAGE_SUFFIX" = "latest" ]; then
# PCUIFv10 is not yet supported in the latest release
sed "/\[MODULE_PARAMETERS\]/ a PCUIF_Types.mp_pcuif_version := 9;" \
-i "$VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg"
# Disable stats testing until libosmocore release > 1.4.0
sed -i "s/^StatsD_Checker.mp_enable_stats.*/StatsD_Checker.mp_enable_stats := false;/" $VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg
sed -i "s/stats interval 0//" $VOL_BASE_DIR/pcu/osmo-pcu.cfg
sed -i "s/flush-period 1//" $VOL_BASE_DIR/pcu/osmo-pcu.cfg
fi
echo Starting container with PCU

View File

@ -11,7 +11,17 @@ log stderr
logging print file basename last
logging print extended-timestamp 1
logging level set-all debug
!
stats interval 0
stats reporter statsd
prefix TTCN3
level subscriber
remote-ip 172.18.13.10
remote-port 8125
flush-period 1
mtu 1024
enable
!
line vty
no login
bind 172.18.13.101