Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
18cc64a1
Commit
18cc64a1
authored
Jan 13, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for NF services
parent
54b1f5c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+1
-1
src/smf_app/smf_profile.cpp
src/smf_app/smf_profile.cpp
+2
-1
src/smf_app/smf_profile.hpp
src/smf_app/smf_profile.hpp
+2
-1
No files found.
src/smf_app/smf_app.cpp
View file @
18cc64a1
...
@@ -1793,7 +1793,7 @@ void smf_app::generate_smf_profile() {
...
@@ -1793,7 +1793,7 @@ void smf_app::generate_smf_profile() {
nf_service
.
service_name
=
"nsmf-pdusession"
;
nf_service
.
service_name
=
"nsmf-pdusession"
;
nf_service_version_t
version
=
{};
nf_service_version_t
version
=
{};
version
.
api_version_in_uri
=
"v1"
;
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
.
versions
.
push_back
(
version
);
nf_service
.
scheme
=
"http"
;
nf_service
.
scheme
=
"http"
;
nf_service
.
nf_service_status
=
"REGISTERED"
;
nf_service
.
nf_service_status
=
"REGISTERED"
;
...
...
src/smf_app/smf_profile.cpp
View file @
18cc64a1
...
@@ -173,7 +173,7 @@ void smf_profile::add_smf_info_item(const snssai_smf_info_item_t &s) {
...
@@ -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
::
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
(
"NF instance info"
);
Logger
::
smf_app
().
debug
(
"
\t
Instance ID: %s"
,
nf_instance_id
.
c_str
());
Logger
::
smf_app
().
debug
(
"
\t
Instance ID: %s"
,
nf_instance_id
.
c_str
());
...
@@ -228,6 +228,7 @@ void smf_profile::display() {
...
@@ -228,6 +228,7 @@ void smf_profile::display() {
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
smf_profile
::
to_json
(
nlohmann
::
json
&
data
)
const
{
void
smf_profile
::
to_json
(
nlohmann
::
json
&
data
)
const
{
display
();
data
[
"nfInstanceId"
]
=
nf_instance_id
;
data
[
"nfInstanceId"
]
=
nf_instance_id
;
data
[
"nfInstanceName"
]
=
nf_instance_name
;
data
[
"nfInstanceName"
]
=
nf_instance_name
;
data
[
"nfType"
]
=
nf_type
;
data
[
"nfType"
]
=
nf_type
;
...
...
src/smf_app/smf_profile.hpp
View file @
18cc64a1
...
@@ -85,6 +85,7 @@ class smf_profile : public std::enable_shared_from_this<smf_profile> {
...
@@ -85,6 +85,7 @@ class smf_profile : public std::enable_shared_from_this<smf_profile> {
nf_status
=
s
.
nf_status
;
nf_status
=
s
.
nf_status
;
custom_info
=
s
.
custom_info
;
custom_info
=
s
.
custom_info
;
smf_info
=
s
.
smf_info
;
smf_info
=
s
.
smf_info
;
nf_services
=
s
.
nf_services
;
}
}
// smf_profile(smf_profile &b) = delete;
// smf_profile(smf_profile &b) = delete;
...
@@ -334,7 +335,7 @@ class smf_profile : public std::enable_shared_from_this<smf_profile> {
...
@@ -334,7 +335,7 @@ class smf_profile : public std::enable_shared_from_this<smf_profile> {
* @param void
* @param void
* @return void:
* @return void:
*/
*/
void
display
();
void
display
()
const
;
/*
/*
* Represent NF profile as json object
* Represent NF profile as json object
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment