Commit 4ec246e4 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Add messages for NF Register/Update

parent 9a72671d
......@@ -32,6 +32,8 @@
#include "itti_msg.hpp"
#include "smf_msg.hpp"
#include "pistache/http.h"
#include "smf_profile.hpp"
#include "PatchItem.h"
class itti_n11_msg : public itti_msg {
public:
......@@ -551,5 +553,47 @@ class itti_n11_notify_subscribed_event : public itti_n11_msg {
uint8_t http_version;
};
//-----------------------------------------------------------------------------
class itti_n11_register_nf_instance_request : public itti_n11_msg {
public:
itti_n11_register_nf_instance_request(const task_id_t orig,
const task_id_t dest)
: itti_n11_msg(N11_REGISTER_NF_INSTANCE_REQUEST, orig, dest),
http_version(1) {}
const char *get_msg_name() { return "N11_REGISTER_NF_INSTANCE_REQUEST"; };
smf::smf_profile profile;
uint8_t http_version;
};
//-----------------------------------------------------------------------------
class itti_n11_register_nf_instance_response : public itti_n11_msg {
public:
itti_n11_register_nf_instance_response(const task_id_t orig,
const task_id_t dest)
: itti_n11_msg(N11_REGISTER_NF_INSTANCE_RESPONSE, orig, dest),
http_version(1) {}
const char *get_msg_name() { return "N11_REGISTER_NF_INSTANCE_RESPONSE"; };
smf::smf_profile profile;
uint8_t http_version;
uint8_t http_response_code;
};
//-----------------------------------------------------------------------------
class itti_n11_update_nf_instance_request : public itti_n11_msg {
public:
itti_n11_update_nf_instance_request(const task_id_t orig,
const task_id_t dest)
: itti_n11_msg(N11_UPDATE_NF_INSTANCE_REQUEST, orig, dest),
http_version(1) {}
const char *get_msg_name() { return "N11_UPDATE_NF_INSTANCE_REQUEST"; };
std::vector<oai::smf_server::model::PatchItem> patch_items;
uint8_t http_version;
std::string smf_instance_id;
};
#endif /* ITTI_MSG_N11_HPP_INCLUDED_ */
......@@ -116,6 +116,9 @@ typedef enum {
N11_SESSION_REPORT_RESPONSE,
N11_SESSION_NOTIFY_SM_CONTEXT_STATUS,
N11_NOTIFY_SUBSCRIBED_EVENT,
N11_REGISTER_NF_INSTANCE_REQUEST,
N11_REGISTER_NF_INSTANCE_RESPONSE,
N11_UPDATE_NF_INSTANCE_REQUEST,
NX_TRIGGER_SESSION_MODIFICATION,
SBI_EVENT_EXPOSURE_REQUEST,
UDP_INIT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment