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
2534b061
Commit
2534b061
authored
Jan 15, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for NFSubscribeNotify server
parent
2cb98406
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
src/api-server/api/NFStatusNotifyApi.h
src/api-server/api/NFStatusNotifyApi.h
+1
-1
src/api-server/smf-api-server.cpp
src/api-server/smf-api-server.cpp
+1
-0
src/api-server/smf-api-server.h
src/api-server/smf-api-server.h
+4
-0
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+1
-1
No files found.
src/api-server/api/NFStatusNotifyApi.h
View file @
2534b061
...
@@ -39,7 +39,7 @@ class NFStatusNotifyApi {
...
@@ -39,7 +39,7 @@ class NFStatusNotifyApi {
virtual
~
NFStatusNotifyApi
()
{}
virtual
~
NFStatusNotifyApi
()
{}
void
init
();
void
init
();
const
std
::
string
base
=
"/nsmf
_nfstatus_
notify/"
;
const
std
::
string
base
=
"/nsmf
-nfstatus-
notify/"
;
private:
private:
void
setupRoutes
();
void
setupRoutes
();
...
...
src/api-server/smf-api-server.cpp
View file @
2534b061
...
@@ -84,6 +84,7 @@ void SMFApiServer::init(size_t thr) {
...
@@ -84,6 +84,7 @@ void SMFApiServer::init(size_t thr) {
m_smContextsCollectionApiImpl
->
init
();
m_smContextsCollectionApiImpl
->
init
();
m_individualSubscriptionDocumentApiImpl
->
init
();
m_individualSubscriptionDocumentApiImpl
->
init
();
m_subscriptionsCollectionApiImpl
->
init
();
m_subscriptionsCollectionApiImpl
->
init
();
m_nfStatusNotifyApiImpl
->
init
();
}
}
void
SMFApiServer
::
start
()
{
void
SMFApiServer
::
start
()
{
...
...
src/api-server/smf-api-server.h
View file @
2534b061
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
#include "SMContextsCollectionApiImpl.h"
#include "SMContextsCollectionApiImpl.h"
#include "IndividualSubscriptionDocumentApiImpl.h"
#include "IndividualSubscriptionDocumentApiImpl.h"
#include "SubscriptionsCollectionApiImpl.h"
#include "SubscriptionsCollectionApiImpl.h"
#include "NFStatusNotifyApiImpl.h"
#include "smf_app.hpp"
#include "smf_app.hpp"
...
@@ -74,6 +75,8 @@ class SMFApiServer {
...
@@ -74,6 +75,8 @@ class SMFApiServer {
>
(
m_router
,
smf_app_inst
,
m_address
);
>
(
m_router
,
smf_app_inst
,
m_address
);
m_subscriptionsCollectionApiImpl
=
std
::
make_shared
m_subscriptionsCollectionApiImpl
=
std
::
make_shared
<
SubscriptionsCollectionApiImpl
>
(
m_router
,
smf_app_inst
,
m_address
);
<
SubscriptionsCollectionApiImpl
>
(
m_router
,
smf_app_inst
,
m_address
);
m_nfStatusNotifyApiImpl
=
std
::
make_shared
<
NFStatusNotifyApiImpl
>
(
m_router
,
smf_app_inst
,
m_address
);
}
}
void
init
(
size_t
thr
=
1
);
void
init
(
size_t
thr
=
1
);
...
@@ -89,6 +92,7 @@ class SMFApiServer {
...
@@ -89,6 +92,7 @@ class SMFApiServer {
std
::
shared_ptr
<
SMContextsCollectionApiImpl
>
m_smContextsCollectionApiImpl
;
std
::
shared_ptr
<
SMContextsCollectionApiImpl
>
m_smContextsCollectionApiImpl
;
std
::
shared_ptr
<
IndividualSubscriptionDocumentApiImpl
>
m_individualSubscriptionDocumentApiImpl
;
std
::
shared_ptr
<
IndividualSubscriptionDocumentApiImpl
>
m_individualSubscriptionDocumentApiImpl
;
std
::
shared_ptr
<
SubscriptionsCollectionApiImpl
>
m_subscriptionsCollectionApiImpl
;
std
::
shared_ptr
<
SubscriptionsCollectionApiImpl
>
m_subscriptionsCollectionApiImpl
;
std
::
shared_ptr
<
NFStatusNotifyApiImpl
>
m_nfStatusNotifyApiImpl
;
std
::
string
m_address
;
std
::
string
m_address
;
};
};
...
...
src/smf_app/smf_app.cpp
View file @
2534b061
...
@@ -1957,7 +1957,7 @@ void smf_app::trigger_upf_status_notification_subscribe() {
...
@@ -1957,7 +1957,7 @@ void smf_app::trigger_upf_status_notification_subscribe() {
//TODO: remove hardcoded values
//TODO: remove hardcoded values
json_data
[
"nfStatusNotificationUri"
]
=
json_data
[
"nfStatusNotificationUri"
]
=
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
smf_cfg
.
sbi
.
addr4
)))
+
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
smf_cfg
.
sbi
.
addr4
)))
+
":"
+
std
::
to_string
(
smf_cfg
.
sbi
.
port
)
+
"/nsmf
_nfstatus_
notify/"
+
":"
+
std
::
to_string
(
smf_cfg
.
sbi
.
port
)
+
"/nsmf
-nfstatus-
notify/"
+
smf_cfg
.
sbi_api_version
+
"/subscriptions"
;
smf_cfg
.
sbi_api_version
+
"/subscriptions"
;
json_data
[
"subscrCond"
][
"NfTypeCond"
][
"nfType"
]
=
"UPF"
;
json_data
[
"subscrCond"
][
"NfTypeCond"
][
"nfType"
]
=
"UPF"
;
...
...
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