summaryrefslogtreecommitdiffstats
path: root/bsc-nat
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2019-03-28 13:03:55 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-29 11:12:14 +0000
commitc07f6f5f24db28a160b88b79458fe9a400ba2371 (patch)
treed0f3fb4c99820cc98214eb9ec6370c1b7c2a528c /bsc-nat
parentd764dd99392f3dd51b1e5660e782b9afa23a7e92 (diff)
bsc-nat: Use id when creating components
Diffstat (limited to 'bsc-nat')
-rw-r--r--bsc-nat/BSCNAT_Tests.ttcn4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsc-nat/BSCNAT_Tests.ttcn b/bsc-nat/BSCNAT_Tests.ttcn
index 685066ce..993d6683 100644
--- a/bsc-nat/BSCNAT_Tests.ttcn
+++ b/bsc-nat/BSCNAT_Tests.ttcn
@@ -107,8 +107,8 @@ function f_init() runs on test_CT {
for (i := 0; i < NUM_MSC; i := i+1) {
f_init_MscState(msc[i], mp_msc_pc +i, mp_bsc_pc, mp_msc_ssn, mp_bsc_ssn);
- msc[i].MSC := MSC_CT.create;
id := "MSC" & int2str(i);
+ msc[i].MSC := MSC_CT.create(id);
msc[i].MSC.start(MSC_Simulation.main(mp_msc_ip, mp_msc_port + i, msc[i].sccp_pars, msc[i].sccp_addr_own, id));
}
@@ -116,8 +116,8 @@ function f_init() runs on test_CT {
f_sleep(5.0);
for (i := 0; i < NUM_BSC; i := i+1) {
f_init_BscState(bsc[i], mp_bsc_pc +i, mp_msc_pc, mp_bsc_ssn, mp_msc_ssn);
- bsc[i].BSC := BSC_CT.create;
id := "BSC" & int2str(i);
+ bsc[i].BSC := BSC_CT.create(id);
bsc[i].BSC.start(BSC_MS_Simulation.main(mp_nat_ip, mp_nat_port, mp_bsc_ip, mp_bsc_port+i,
bsc[i].sccp_pars, bsc[i].sccp_addr_own,
bsc[i].sccp_addr_peer, id));