fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37952?usp=email )


Change subject: PFCP: add Heartbeat Req/Resp templates
......................................................................

PFCP: add Heartbeat Req/Resp templates

Change-Id: I569b47b6ebc3ca238da544488cac69dfc1db1dfe
Related: SYS#6772
---
M library/PFCP_Templates.ttcn
1 file changed, 44 insertions(+), 3 deletions(-)



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

diff --git a/library/PFCP_Templates.ttcn b/library/PFCP_Templates.ttcn
index ad90ff2..f3b6893 100644
--- a/library/PFCP_Templates.ttcn
+++ b/library/PFCP_Templates.ttcn
@@ -73,13 +73,14 @@
 template (value) Node_ID ts_PFCP_Node_ID_ipv4(OCT4 ip_value) := 
ts_PFCP_Node_ID(PFCP_Node_ID_IPv4, ip_value);
 template (value) Node_ID ts_PFCP_Node_ID_fqdn(charstring fqdn) := 
ts_PFCP_Node_ID(PFCP_Node_ID_FQDN, char2oct(fqdn));

-template (value) Recovery_Time_Stamp ts_PFCP_Recovery_Timestamp(LIN4_BO_LAST 
time_value) := {
+template (value) Recovery_Time_Stamp
+ts_PFCP_Recovery_Timestamp(template (value) LIN4_BO_LAST time_value) := {
        elementIdentifier := 96,
        lengthIndicator := 0,
        time_value := time_value
 };
-
-template (present) Recovery_Time_Stamp tr_PFCP_Recovery_Timestamp(template 
(present) LIN4_BO_LAST time_value := ?) := {
+template (present) Recovery_Time_Stamp
+tr_PFCP_Recovery_Timestamp(template (present) LIN4_BO_LAST time_value := ?) := 
{
        elementIdentifier := 96,
        lengthIndicator := ?,
        time_value := time_value
@@ -113,6 +114,46 @@
        message_body := ?
 };

+/* 7.4.2.1 Heartbeat Request */
+template (value) PDU_PFCP
+ts_PFCP_Heartbeat_Req(template (value) LIN4_BO_LAST recovery_time_stamp)
+modifies ts_PDU_PFCP_ := {
+       message_body := {
+               heartbeat_request := {
+                       recovery_time_stamp := 
ts_PFCP_Recovery_Timestamp(recovery_time_stamp)
+               }
+       }
+};
+template (present) PDU_PFCP
+tr_PFCP_Heartbeat_Req(template (present) LIN4_BO_LAST recovery_time_stamp := ?)
+modifies tr_PDU_PFCP_ := {
+       message_body := {
+               heartbeat_request := {
+                       recovery_time_stamp := 
tr_PFCP_Recovery_Timestamp(recovery_time_stamp)
+               }
+       }
+};
+
+/* 7.4.2.2 Heartbeat Response */
+template (value) PDU_PFCP
+ts_PFCP_Heartbeat_Resp(template (value) LIN4_BO_LAST recovery_time_stamp)
+modifies ts_PDU_PFCP_ := {
+       message_body := {
+               heartbeat_response := {
+                       recovery_time_stamp := 
ts_PFCP_Recovery_Timestamp(recovery_time_stamp)
+               }
+       }
+};
+template (present) PDU_PFCP
+tr_PFCP_Heartbeat_Resp(template (present) LIN4_BO_LAST recovery_time_stamp := 
?)
+modifies tr_PDU_PFCP_ := {
+       message_body := {
+               heartbeat_response := {
+                       recovery_time_stamp := 
tr_PFCP_Recovery_Timestamp(recovery_time_stamp)
+               }
+       }
+};
+
 /* 7.4.4.1 PFCP Association Setup Request */
 template (value) PDU_PFCP
 ts_PFCP_Assoc_Setup_Req(template (value) Node_ID node_id,

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37952?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: I569b47b6ebc3ca238da544488cac69dfc1db1dfe
Gerrit-Change-Number: 37952
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to