bsc: allow multiple MSCs
Similar to the MSC tests, have several g_bssap and mp_bssap_cfg.
Prepare for MSC pool tests.
Replace g_bssap with a g_bssap[NUM_MSC] array.
Replace mp_bssap_cfg with an mp_bssap_cfg[NUM_MSC] array.
Requires patch I1986e4ef43beee161c82193694421b56136c1afe in docker-playground
to match the new required BSC_Tests.cfg format.
Related: OS#3682
Change-Id: Ibb36695b7c31f7b04eec6c5d59522fc0779b3c2f
diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn
index f1d2e63..feedc6f 100644
--- a/bsc/MSC_ConnectionHandler.ttcn
+++ b/bsc/MSC_ConnectionHandler.ttcn
@@ -514,6 +514,10 @@
SCCP_PAR_Address sccp_addr_bsc
}
+type record TestHdlrParamsMSCPool {
+ integer bssap_idx
+}
+
type record TestHdlrParams {
OCT1 ra,
GsmFrameNumber fn,
@@ -529,7 +533,8 @@
uint5_t exp_ms_power_level,
boolean exp_ms_power_params,
boolean aoip,
- boolean use_osmux
+ boolean use_osmux,
+ TestHdlrParamsMSCPool mscpool
};
/* Note: Do not use valueof() to get a value of this template, use
@@ -556,7 +561,10 @@
exp_ms_power_level := 7, /* calculated from osmo-bsc.cfg "ms max power" */
exp_ms_power_params := false,
aoip := true,
- use_osmux := false
+ use_osmux := false,
+ mscpool := {
+ bssap_idx := 0
+ }
}
function f_create_chan_and_exp() runs on MSC_ConnHdlr {