Change in osmo-ttcn3-hacks[master]: Add templates for FLUSH_LL

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
Wed Nov 25 16:10:23 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21270 )

Change subject: Add templates for FLUSH_LL
......................................................................

Add templates for FLUSH_LL

Change-Id: Id432022fdd7f96bc014f0fd81658fa4aa796a688
Related: SYS#5210
---
M library/Osmocom_Gb_Types.ttcn
1 file changed, 61 insertions(+), 7 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn
index ee03a8a..dacb720 100644
--- a/library/Osmocom_Gb_Types.ttcn
+++ b/library/Osmocom_Gb_Types.ttcn
@@ -768,13 +768,43 @@
 	} with { variant "FIELDLENGTH(8)" };
 
 
-	template BVCI t_BSSGP_BVCI(template BssgpBvci bvci) := {
-		iEI := '04'O,
-		ext := '1'B,
-		lengthIndicator := {
-			length1 := 2
-		},
-		unstructured_value := f_oct_or_wc(bvci, 2)
+	private function t_BSSGP_BVCI(template BssgpBvci bvci)
+	return template BVCI {
+		var template BVCI r;
+		if (istemplatekind(bvci, "omit")) {
+			return omit;
+		} else if (istemplatekind(bvci, "*")) {
+			return *;
+		} else {
+			r := {
+				iEI := '04'O,
+				ext := '1'B,
+				lengthIndicator := {
+					length1 := 2
+				},
+				unstructured_value := f_oct_or_wc(bvci, 2)
+			}
+			return r;
+		}
+	}
+	private function  t_BSSGP_NSEI(template Nsei nsei)
+	return template NSEI_BSSGP {
+		var template NSEI_BSSGP r;
+		if (istemplatekind(nsei, "omit")) {
+			return omit;
+		} else if (istemplatekind(nsei, "*")) {
+			return *;
+		} else {
+			r := {
+				iEI:= '3E'O,
+				ext := '1'B,
+				lengthIndicator := {
+					length1 := 2
+				},
+				nSEI := f_oct_or_wc(nsei, 2)
+			}
+			return r;
+		}
 	}
 
 	template (value) TLLI_BSSGP ts_BSSGP_TLLI(template (value) GprsTlli tlli) := {
@@ -1728,6 +1758,30 @@
 		}
 	}
 
+	/* 10.4.1 */
+	template (value) PDU_BSSGP ts_BSSGP_FLUSH_LL(GprsTlli tlli, template (value) BssgpBvci bvci_old,
+						     template (omit) BssgpBvci bvci_new := omit,
+						     template (omit) Nsei nsei := omit) := {
+		pDU_BSSGP_FLUSH_LL := {
+			bssgpPduType := '2A'O,
+			tLLI := ts_BSSGP_TLLI(tlli),
+			bVCI_old := t_BSSGP_BVCI(bvci_old),
+			bVCI_new := t_BSSGP_BVCI(bvci_new),
+			nSEI := t_BSSGP_NSEI(nsei)
+		}
+	}
+	template PDU_BSSGP tr_BSSGP_FLUSH_LL(template GprsTlli tlli, template BssgpBvci bvci_old,
+					     template (omit) BssgpBvci bvci_new := omit,
+					     template (omit) Nsei nsei := omit) := {
+		pDU_BSSGP_FLUSH_LL := {
+			bssgpPduType := '2A'O,
+			tLLI := tr_BSSGP_TLLI(tlli),
+			bVCI_old := t_BSSGP_BVCI(bvci_old),
+			bVCI_new := t_BSSGP_BVCI(bvci_new),
+			nSEI := t_BSSGP_NSEI(nsei)
+		}
+	}
+
 	/* 10.2.3 */
 	template (value) PDU_BSSGP ts_BSSGP_RA_CAP(GprsTlli tlli,
 						   template (omit) MSRadioAccessCapabilityV_BSSGP racap := omit) := {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21270
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: Id432022fdd7f96bc014f0fd81658fa4aa796a688
Gerrit-Change-Number: 21270
Gerrit-PatchSet: 4
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201125/7ec36a3c/attachment.htm>


More information about the gerrit-log mailing list