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
288b0824
Commit
288b0824
authored
Mar 25, 2022
by
gauthier
Committed by
Tien-Thinh Nguyen
Mar 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Harmonize RAN and AMF UE-NGAP-ID printing by using a common definition of print format
parent
bd3eeb3d
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
147 additions
and
91 deletions
+147
-91
src/amf-app/amf_app.cpp
src/amf-app/amf_app.cpp
+5
-3
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+53
-32
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+2
-1
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+84
-55
src/common/amf.hpp
src/common/amf.hpp
+3
-0
No files found.
src/amf-app/amf_app.cpp
View file @
288b0824
...
...
@@ -357,7 +357,8 @@ void amf_app::handle_itti_message(
std
::
shared_ptr
<
ue_ngap_context
>
unc
=
{};
if
(
!
amf_n2_inst
->
is_ran_ue_id_2_ue_ngap_context
(
itti_msg
.
ran_ue_ngap_id
))
{
Logger
::
amf_n1
().
error
(
"Could not find UE NGAP Context with ran_ue_ngap_id (0x%x)"
,
"Could not find UE NGAP Context with ran_ue_ngap_id "
"("
GNB_UE_NGAP_ID_FMT
")"
,
itti_msg
.
ran_ue_ngap_id
);
}
else
{
unc
=
amf_n2_inst
->
ran_ue_id_2_ue_ngap_context
(
itti_msg
.
ran_ue_ngap_id
);
...
...
@@ -564,7 +565,7 @@ void amf_app::handle_itti_message(itti_sbi_n1_message_notification& itti_msg) {
std
::
shared_ptr
<
ue_ngap_context
>
unc
=
{};
if
(
!
amf_n2_inst
->
is_ran_ue_id_2_ue_ngap_context
(
ran_ue_ngap_id
))
{
Logger
::
amf_app
().
debug
(
"Create a new UE NGAP context with ran_ue_ngap_id
0x%x"
,
"Create a new UE NGAP context with ran_ue_ngap_id
"
GNB_UE_NGAP_ID_FMT
,
ran_ue_ngap_id
);
unc
=
std
::
shared_ptr
<
ue_ngap_context
>
(
new
ue_ngap_context
());
amf_n2_inst
->
set_ran_ue_ngap_id_2_ue_ngap_context
(
ran_ue_ngap_id
,
unc
);
...
...
@@ -572,7 +573,8 @@ void amf_app::handle_itti_message(itti_sbi_n1_message_notification& itti_msg) {
unc
=
amf_n2_inst
->
ran_ue_id_2_ue_ngap_context
(
ran_ue_ngap_id
);
if
(
!
unc
.
get
())
{
Logger
::
amf_app
().
error
(
"Failed to get UE NGAP context for ran_ue_ngap_id 0x%x"
,
"Failed to get UE NGAP context for "
"ran_ue_ngap_id "
GNB_UE_NGAP_ID_FMT
,
ran_ue_ngap_id
);
return
;
}
...
...
src/amf-app/amf_n1.cpp
View file @
288b0824
This diff is collapsed.
Click to expand it.
src/amf-app/amf_n11.cpp
View file @
288b0824
...
...
@@ -290,7 +290,8 @@ void amf_n11::handle_itti_message(itti_nsmf_pdusession_create_sm_context& smf) {
if
(
!
amf_n1_inst
->
is_amf_ue_id_2_nas_context
(
smf
.
amf_ue_ngap_id
))
{
Logger
::
amf_n11
().
error
(
"No UE NAS context with amf_ue_ngap_id (0x%x)"
,
smf
.
amf_ue_ngap_id
);
"No UE NAS context with amf_ue_ngap_id ("
AMF_UE_NGAP_ID_FMT
")"
,
smf
.
amf_ue_ngap_id
);
return
;
}
...
...
src/amf-app/amf_n2.cpp
View file @
288b0824
This diff is collapsed.
Click to expand it.
src/common/amf.hpp
View file @
288b0824
...
...
@@ -45,6 +45,9 @@ constexpr auto CURL_MIME_BOUNDARY = "----Boundary";
#define FUTURE_STATUS_TIMEOUT_MS 100
#define GNB_UE_NGAP_ID_FMT "%" PRIu32
#define AMF_UE_NGAP_ID_FMT "%" PRIu64
// Event Subscription IDs)
typedef
uint32_t
evsub_id_t
;
#define EVSUB_ID_FMT "0x%" PRIx32
...
...
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