pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43738?usp=email ) Change subject: ngap: Introduce f_mw_PDUSessionResourceSetupRequestTransfer() ...................................................................... ngap: Introduce f_mw_PDUSessionResourceSetupRequestTransfer() Similar to other functions already added to the file in the past. Change-Id: I1b21e873b3f0a377ad5064a5c32826e795a7dfe9 --- M library/ngap/NGAP_Templates.ttcn 1 file changed, 95 insertions(+), 0 deletions(-) Approvals: pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/library/ngap/NGAP_Templates.ttcn b/library/ngap/NGAP_Templates.ttcn index 3fb0b6d..8a3e543 100644 --- a/library/ngap/NGAP_Templates.ttcn +++ b/library/ngap/NGAP_Templates.ttcn @@ -22743,6 +22743,101 @@ } } // End of template mw_pDUSessionResourceSetupRequestTransfer_id_MBSSessionSetupRequestList + + function f_mw_n2_PDUSessionResourceSetupRequestTransfer(template PDUSessionAggregateMaximumBitRate p_pDUSessionAggregateMaximumBitRate := omit, + template (present) UPTransportLayerInformation p_uPTransportLayerInformation := ?, + template UPTransportLayerInformationList p_uPTransportLayerInformationList := omit, + template DataForwardingNotPossible p_dataForwardingNotPossible := omit, + template (present) PDUSessionType p_pDUSessionType := ?, + template SecurityIndication p_securityIndication := omit, + template NetworkInstance p_networkInstance := omit, + template (present) QosFlowSetupRequestList p_qosFlowSetupRequestList := ?) + return template (present) PDUSessionResourceSetupRequestTransfer { + var template (present) PDUSessionResourceSetupRequestTransfer pdu := { + protocolIEs := {} + }; + var integer idx := lengthof(pdu.protocolIEs); + + /* PDUSessionAggregateMaximumBitRate */ + if (not istemplatekind(p_pDUSessionAggregateMaximumBitRate, "omit")) { + pdu.protocolIEs[idx] := { + id := id_PDUSessionAggregateMaximumBitRate, + criticality := reject, + value_ := { PDUSessionAggregateMaximumBitRate := p_pDUSessionAggregateMaximumBitRate } + }; + idx := idx + 1; + } + + /* UPTransportLayerInformation */ + pdu.protocolIEs[idx] := { + id := id_UL_NGU_UP_TNLInformation, + criticality := reject, + value_ := { UPTransportLayerInformation := p_uPTransportLayerInformation } + }; + idx := idx + 1; + + /* id-AdditionalUL-NGU-UP-TNLInformation */ + if (not istemplatekind(p_uPTransportLayerInformationList, "omit")) { + pdu.protocolIEs[idx] := { + id := id_AdditionalUL_NGU_UP_TNLInformation, + criticality := reject, + value_ := { UPTransportLayerInformationList := p_uPTransportLayerInformationList } + }; + idx := idx + 1; + } + + /* TODO: id-AdditionalUL-NGU-UP-TNLInformation */ + + /* DataForwardingNotPossible */ + if (not istemplatekind(p_dataForwardingNotPossible, "omit")) { + pdu.protocolIEs[idx] := { + id := id_DataForwardingNotPossible, + criticality := reject, + value_ := { DataForwardingNotPossible := p_dataForwardingNotPossible } + }; + idx := idx + 1; + } + + /* PDUSessionType */ + pdu.protocolIEs[idx] := { + id := id_PDUSessionType, + criticality := reject, + value_ := { PDUSessionType := p_pDUSessionType } + }; + idx := idx + 1; + + /* SecurityIndication */ + if (not istemplatekind(p_securityIndication, "omit")) { + pdu.protocolIEs[idx] := { + id := id_SecurityIndication, + criticality := reject, + value_ := { SecurityIndication := p_securityIndication } + }; + idx := idx + 1; + } + + /* NetworkInstance */ + if (not istemplatekind(p_networkInstance, "omit")) { + pdu.protocolIEs[idx] := { + id := id_NetworkInstance, + criticality := reject, + value_ := { NetworkInstance := p_networkInstance } + }; + idx := idx + 1; + } + + /* PDU Session Resource Setup Request List */ + pdu.protocolIEs[idx] := { + id := id_QosFlowSetupRequestList, + criticality := reject, + value_ := { QosFlowSetupRequestList := p_qosFlowSetupRequestList } + }; + idx := idx + 1; + + /* TODO: all IEs afterwards with criticality ignore. */ + return pdu; + } // End of function f_mw_PDUSessionResourceSetupRequestTransfer + template (present) PDUSessionResourceSetupResponseTransfer mw_pDUSessionResourceSetupResponseTransfer( template (present) QosFlowPerTNLInformation p_dLQosFlowPerTNLInformation := ?, template QosFlowPerTNLInformationList p_additionalDLQosFlowPerTNLInformation := *, -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43738?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I1b21e873b3f0a377ad5064a5c32826e795a7dfe9 Gerrit-Change-Number: 43738 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin@sysmocom.de>