Change in osmo-ttcn3-hacks[master]: gbproxy: Remove NUM_BVC_PER_NSE constant and constant-sized array

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
Tue Nov 17 17:36:03 UTC 2020


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


Change subject: gbproxy: Remove NUM_BVC_PER_NSE constant and constant-sized array
......................................................................

gbproxy: Remove NUM_BVC_PER_NSE constant and constant-sized array

Let's use a 'record of' with indefinite length in order to be able to
dynamically adjust the number of BSSGP_BVC_CT references based on how
many BVCs we have configured.

Change-Id: Id4aa20ff0b553cb8a1f5a67faa1e7b237fb254b8
---
M gbproxy/GBProxy_Tests.ttcn
1 file changed, 2 insertions(+), 2 deletions(-)



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

diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index 874679d..e6c07d7 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -187,13 +187,13 @@
 	}
 };
 
-const integer NUM_BVC_PER_NSE := 3;
 type record GbInstance {
 	NS_CT vc_NS,
 	BSSGP_CT vc_BSSGP,
-	BSSGP_BVC_CT vc_BSSGP_BVC[NUM_BVC_PER_NSE],
+	BSSGP_BVC_CTs vc_BSSGP_BVC,
 	BssgpConfig cfg
 };
+type record of BSSGP_BVC_CT BSSGP_BVC_CTs
 
 const integer NUM_PCU := 3;
 type record of GbInstance GbInstances;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21220
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: Id4aa20ff0b553cb8a1f5a67faa1e7b237fb254b8
Gerrit-Change-Number: 21220
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/20201117/997c081a/attachment.htm>


More information about the gerrit-log mailing list