Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
e11c85c6
Commit
e11c85c6
authored
Feb 04, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup for NSSF URI
parent
09adfb29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
13 deletions
+22
-13
src/amf-app/amf_config.cpp
src/amf-app/amf_config.cpp
+7
-0
src/amf-app/amf_config.hpp
src/amf-app/amf_config.hpp
+1
-0
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+14
-13
No files found.
src/amf-app/amf_config.cpp
View file @
e11c85c6
...
...
@@ -851,4 +851,11 @@ std::string amf_config::get_udm_slice_selection_subscription_data_retrieval_uri(
":"
+
std
::
to_string
(
udm_addr
.
port
)
+
"/nudm-sdm/"
+
udm_addr
.
api_version
+
"/"
+
supi
+
"/nssai"
;
}
//------------------------------------------------------------------------------
std
::
string
amf_config
::
get_nssf_network_slice_selection_information_uri
()
{
return
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
nssf_addr
.
ipv4_addr
)))
+
":"
+
std
::
to_string
(
nssf_addr
.
port
)
+
"/nnssf-nsselection/"
+
nssf_addr
.
api_version
+
"/network-slice-information"
;
}
}
// namespace config
src/amf-app/amf_config.hpp
View file @
e11c85c6
...
...
@@ -208,6 +208,7 @@ class amf_config {
std
::
string
get_nrf_nf_discovery_service_uri
();
std
::
string
get_udm_slice_selection_subscription_data_retrieval_uri
(
const
std
::
string
&
supi
);
std
::
string
get_nssf_network_slice_selection_information_uri
();
void
display
();
unsigned
int
instance
;
...
...
src/amf-app/amf_n11.cpp
View file @
e11c85c6
...
...
@@ -634,11 +634,7 @@ void amf_n11::handle_itti_message(
"%d)"
,
itti_msg
.
http_version
);
std
::
string
url
=
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
amf_cfg
.
nssf_addr
.
ipv4_addr
)))
+
":"
+
std
::
to_string
(
amf_cfg
.
nssf_addr
.
port
)
+
"/nnssf-nsselection/"
+
amf_cfg
.
nssf_addr
.
api_version
+
"/network-slice-information"
;
std
::
string
url
=
amf_cfg
.
get_nssf_network_slice_selection_information_uri
();
// slice-info-request-for-registration
nlohmann
::
json
slice_info
=
{};
...
...
@@ -653,8 +649,9 @@ void amf_n11::handle_itti_message(
"?slice-info-request-for-registration="
+
slice_info
.
dump
()
+
"?home-plmn-id="
+
home_plmn_id
.
dump
();
url
+=
parameters
;
Logger
::
amf_n11
().
debug
(
"Send Slice Selection
Subscription Data Retrieval to UDM
, URL %s"
,
"Send Slice Selection
Information Retrieval to NSSF
, URL %s"
,
url
.
c_str
());
nlohmann
::
json
response_data
=
{};
...
...
@@ -785,13 +782,17 @@ bool amf_n11::discover_smf_from_nsi_info(
slice_info
[
"roamingIndication"
]
=
"NON_ROAMING"
;
// ToDo Add TAI
std
::
string
url
=
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
amf_cfg
.
nssf_addr
.
ipv4_addr
)))
+
":"
+
std
::
to_string
(
amf_cfg
.
nssf_addr
.
port
)
+
"/nnssf-nsselection/"
+
amf_cfg
.
nssf_addr
.
api_version
+
"/network-slice-information?nf-type=AMF&nf-id=abc&slice-"
"info-request-for-pdu-session="
+
slice_info
.
dump
();
std
::
string
url
=
amf_cfg
.
get_nssf_network_slice_selection_information_uri
();
std
::
string
parameters
=
{};
parameters
=
"?nf-type=AMF&nf-id="
+
amf_app_inst
->
get_nf_instance
()
+
"&slice-info-request-for-pdu-session="
+
slice_info
.
dump
();
url
+=
parameters
;
Logger
::
amf_n11
().
debug
(
"Send Network Slice Information Retrieval during PDU session "
"establishment procedure, URL %s"
,
url
.
c_str
());
// TODO: use curl_http_client
...
...
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