diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-08-23 20:45:58 +0200 |
---|---|---|
committer | neels <nhofmeyr@sysmocom.de> | 2021-09-14 08:31:04 +0000 |
commit | 9db8e0e0774a2dd765c356cd04df5195d6e98175 (patch) | |
tree | 2a2a27b41f2b9b6cd29c18b7e8b8abcda15b99b9 /bsc | |
parent | 58be48a16ab339f84a25a80fe7145b2fd3b73836 (diff) |
bsc: reset MSC link stati in f_init()
I want to add tests that verify the stat items reflecting the MSC
connection status. To be able to run a test expecting fewer connected
MSC after a test that launched more MSCs requires the links to be reset.
Related: SYS#5542
Depends: I1975941b790d2b30d0904d41e456220cba26ecff (osmo-bsc)
Change-Id: Ice3056dc46c94f9399f8379db7aeb7193782f2f2
Diffstat (limited to 'bsc')
-rw-r--r-- | bsc/BSC_Tests.ttcn | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 077daba3..00d3d3fc 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -1121,6 +1121,11 @@ function f_init(integer nr_bts := NUM_BTS, boolean handler_mode := false, boolea var my_BooleanList allow_attach := { false, false, false }; f_init_statsd("VirtMSC", vc_STATSD, mp_test_ip, mp_bsc_statsd_port); + /* Make sure each MSC's internal state is "DISCONNECTED" at first */ + for (bssap_idx := 0; bssap_idx < NUM_MSC; bssap_idx := bssap_idx+1) { + f_vty_transceive(BSCVTY, "msc " & int2str(bssap_idx) & " bssmap reset", strict := false); + } + for (bssap_idx := 0; bssap_idx < nr_msc; bssap_idx := bssap_idx+1) { allow_attach[bssap_idx] := true; /* Call a function of our 'parent component' RAN_Adapter_CT to start the |