Commit 18cc64a1 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for NF services

parent 54b1f5c4
......@@ -1793,7 +1793,7 @@ void smf_app::generate_smf_profile() {
nf_service.service_name = "nsmf-pdusession";
nf_service_version_t version = {};
version.api_version_in_uri = "v1";
version.api_version_in_uri = "1.0.0"; // TODO: to be updated
version.api_full_version = "1.0.0"; // TODO: to be updated
nf_service.versions.push_back(version);
nf_service.scheme = "http";
nf_service.nf_service_status = "REGISTERED";
......
......@@ -173,7 +173,7 @@ void smf_profile::add_smf_info_item(const snssai_smf_info_item_t &s) {
void smf_profile::get_smf_info(smf_info_t &s) const { s = smf_info; }
//------------------------------------------------------------------------------
void smf_profile::display() {
void smf_profile::display() const {
Logger::smf_app().debug("NF instance info");
Logger::smf_app().debug("\tInstance ID: %s", nf_instance_id.c_str());
......@@ -228,6 +228,7 @@ void smf_profile::display() {
//------------------------------------------------------------------------------
void smf_profile::to_json(nlohmann::json &data) const {
display();
data["nfInstanceId"] = nf_instance_id;
data["nfInstanceName"] = nf_instance_name;
data["nfType"] = nf_type;
......
......@@ -85,6 +85,7 @@ class smf_profile : public std::enable_shared_from_this<smf_profile> {
nf_status = s.nf_status;
custom_info = s.custom_info;
smf_info = s.smf_info;
nf_services = s.nf_services;
}
// smf_profile(smf_profile &b) = delete;
......@@ -334,7 +335,7 @@ class smf_profile : public std::enable_shared_from_this<smf_profile> {
* @param void
* @return void:
*/
void display();
void display() const;
/*
* Represent NF profile as json object
......
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