Change in osmo-ttcn3-hacks[master]: bsc-nat: Use id when creating components

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Mar 29 11:12:17 UTC 2019


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/13460 )

Change subject: bsc-nat: Use id when creating components
......................................................................

bsc-nat: Use id when creating components

Change-Id: I2c130d74405cef2b9aa1f9c0a2122fd70aa9cc62
---
M bsc-nat/BSCNAT_Tests.ttcn
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/bsc-nat/BSCNAT_Tests.ttcn b/bsc-nat/BSCNAT_Tests.ttcn
index 685066c..993d668 100644
--- a/bsc-nat/BSCNAT_Tests.ttcn
+++ b/bsc-nat/BSCNAT_Tests.ttcn
@@ -107,8 +107,8 @@
 
 	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 @@
 	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));

-- 
To view, visit https://gerrit.osmocom.org/13460
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2c130d74405cef2b9aa1f9c0a2122fd70aa9cc62
Gerrit-Change-Number: 13460
Gerrit-PatchSet: 2
Gerrit-Owner: Daniel Willmann <dwillmann at sysmocom.de>
Gerrit-Reviewer: Daniel Willmann <dwillmann at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190329/2df5146b/attachment.html>


More information about the gerrit-log mailing list