pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40778?usp=email )
Change subject: library/ngap: Support passing optional NAS-PDU to
PDUSessionResourceReleaseCommand
......................................................................
library/ngap: Support passing optional NAS-PDU to PDUSessionResourceReleaseCommand
Change-Id: I5f516f33824a83c0eaeb2c0decd82409b786867e
---
M library/ngap/NGAP_Templates.ttcn
1 file changed, 90 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/78/40778/1
diff --git a/library/ngap/NGAP_Templates.ttcn b/library/ngap/NGAP_Templates.ttcn
index 85c5e0b..5ffe2a5 100644
--- a/library/ngap/NGAP_Templates.ttcn
+++ b/library/ngap/NGAP_Templates.ttcn
@@ -324,6 +324,51 @@
}
} // End of template m_n2_PDUSessionResourceReleaseCommand
+ function f_ts_n2_PDUSessionResourceReleaseCommand(template (value)
AMF_UE_NGAP_ID p_amfUeNgapID := PX_AMF_UE_NGAP_ID,
+ template (value)
RAN_UE_NGAP_ID p_ranUeNgapID := PX_RAN_UE_NGAP_ID,
+ template (omit)
NAS_PDU p_nAS_PDU,
+ template (value)
PDUSessionResourceToReleaseListRelCmd p_pDUSessionResourceToReleaseListRelCmd)
+ return template (value) InitiatingMessage {
+ var template (value) InitiatingMessage pdu := {
+ procedureCode := id_PDUSessionResourceRelease,
+ criticality := reject,
+ value_ := {
+ PDUSessionResourceReleaseCommand := {
+ protocolIEs := {
+ {
+ id := id_AMF_UE_NGAP_ID,
+ criticality := reject,
+ value_ := { AMF_UE_NGAP_ID := p_amfUeNgapID
}
+ },
+ {
+ id := id_RAN_UE_NGAP_ID,
+ criticality := reject,
+ value_ := { RAN_UE_NGAP_ID := p_ranUeNgapID
}
+ }
+ }
+ }
+ }
+ };
+ var integer idx :=
lengthof(pdu.value_.PDUSessionResourceReleaseCommand.protocolIEs);
+
+ if (isvalue(p_nAS_PDU)) {
+
pdu.value_.PDUSessionResourceReleaseCommand.protocolIEs[idx] :=
+ {
+ id := id_NAS_PDU,
+ criticality := ignore,
+ value_ := { nAS_PDU := p_nAS_PDU }
+ };
+ idx := idx + 1;
+ }
+
+ pdu.value_.PDUSessionResourceReleaseCommand.protocolIEs[idx] :=
+ { id := id_PDUSessionResourceToReleaseListRelCmd,
+ criticality := reject,
+ value_ := { PDUSessionResourceToReleaseListRelCmd :=
p_pDUSessionResourceToReleaseListRelCmd }
+ };
+ return pdu;
+ }
+
} // End of group Send
group Receive {
@@ -361,6 +406,51 @@
}
} // End of template mw_n2_PDUSessionResourceReleaseCommand
+ function f_tr_n2_PDUSessionResourceReleaseCommand(template (present)
AMF_UE_NGAP_ID p_amfUeNgapID := ?,
+ template (present)
RAN_UE_NGAP_ID p_ranUeNgapID := ?,
+ template NAS_PDU
p_nAS_PDU := omit,
+ template (present)
PDUSessionResourceToReleaseListRelCmd p_pDUSessionResourceToReleaseListRelCmd := ?)
+ return template (present) InitiatingMessage {
+ var template (present) InitiatingMessage pdu := {
+ procedureCode := id_PDUSessionResourceRelease,
+ criticality := reject,
+ value_ := {
+ PDUSessionResourceReleaseCommand := {
+ protocolIEs := {
+ {
+ id := id_AMF_UE_NGAP_ID,
+ criticality := reject,
+ value_ := { AMF_UE_NGAP_ID := p_amfUeNgapID
}
+ },
+ {
+ id := id_RAN_UE_NGAP_ID,
+ criticality := reject,
+ value_ := { RAN_UE_NGAP_ID := p_ranUeNgapID
}
+ }
+ }
+ }
+ }
+ };
+ var integer idx :=
lengthof(pdu.value_.PDUSessionResourceReleaseCommand.protocolIEs);
+
+ if (not istemplatekind(p_nAS_PDU, "omit")) {
+
pdu.value_.PDUSessionResourceReleaseCommand.protocolIEs[idx] :=
+ {
+ id := id_NAS_PDU,
+ criticality := ignore,
+ value_ := { nAS_PDU := p_nAS_PDU }
+ };
+ idx := idx + 1;
+ }
+
+ pdu.value_.PDUSessionResourceReleaseCommand.protocolIEs[idx] :=
+ { id := id_PDUSessionResourceToReleaseListRelCmd,
+ criticality := reject,
+ value_ := { PDUSessionResourceToReleaseListRelCmd :=
p_pDUSessionResourceToReleaseListRelCmd }
+ };
+ return pdu;
+ }
+
} // End of group Receive
} // End of group PDU_SESSION_RESOURCE_RELEASE_COMMAND
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40778?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I5f516f33824a83c0eaeb2c0decd82409b786867e
Gerrit-Change-Number: 40778
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>