Change in osmo-ttcn3-hacks[master]: fr: UE_CT: Store BVCI + CellId in each UE

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Feb 4 13:58:38 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22693 )


Change subject: fr: UE_CT: Store BVCI + CellId in each UE
......................................................................

fr: UE_CT: Store BVCI + CellId in each UE

Change-Id: I1a25a03e17b3d957763512dc4acda134338df3be
---
M fr/FR_Tests.ttcn
1 file changed, 8 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/93/22693/1

diff --git a/fr/FR_Tests.ttcn b/fr/FR_Tests.ttcn
index 311cab6..a2c5e82 100644
--- a/fr/FR_Tests.ttcn
+++ b/fr/FR_Tests.ttcn
@@ -119,7 +119,9 @@
 type record UE_Pars {
 	hexstring imsi,
 	OCT4 tlli,
-	float tguard
+	float tguard,
+	BssgpBvci bvci,
+	BssgpCellId cell_id
 };
 
 type function void_fn(charstring id) runs on UE_CT;
@@ -158,14 +160,16 @@
 }
 
 /* start a single UE component; connect it to BSSGP */
-function f_start_ue(void_fn fn, charstring id, GbInstance gb, integer imsi_suffix, BSSGP_BVC_CT bvc_comp, float t_guard := 40.0)
+function f_start_ue(void_fn fn, charstring id, BssgpBvcConfig bvc, integer imsi_suffix, BSSGP_BVC_CT bvc_comp, float t_guard := 40.0)
 runs on test_CT return UE_CT
 {
 	var UE_CT ue_comp;
 	var UE_Pars ue_pars := {
 		imsi := f_gen_imsi(imsi_suffix),
 		tlli := f_gprs_tlli_random(),
-		tguard := t_guard
+		tguard := t_guard,
+		bvci := bvc.bvci,
+		cell_id := bvc.cell_id
 	};
 
 	ue_comp := UE_CT.create(id);
@@ -203,7 +207,7 @@
 			for (var integer k := 0; k < ue_per_bvc; k := k+1) {
 				var charstring id := "gb" & int2str(i) & "-bvc" & int2str(g_gb[i].cfg.bvc[j].bvci) & "-UEsim" & int2str(k);
 				var UE_CT ue;
-				ue := f_start_ue(ue_fn, id, g_gb[i], i*10000+j*100+k, bvc_comp,
+				ue := f_start_ue(ue_fn, id, g_gb[i].cfg.bvc[j], i*10000+j*100+k, bvc_comp,
 ue_tguard);
 				ues := ues & { ue };
 				/* a bit of staggering to ensure the timers above don't run all at the same time */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22693
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1a25a03e17b3d957763512dc4acda134338df3be
Gerrit-Change-Number: 22693
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210204/dc4b490c/attachment.htm>


More information about the gerrit-log mailing list