Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AUSF
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-AUSF
Commits
2bb215f9
Commit
2bb215f9
authored
Jul 14, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some bug of itti
parent
20b8eed8
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
15 deletions
+15
-15
src/ausf_app/CMakeLists.txt
src/ausf_app/CMakeLists.txt
+1
-0
src/ausf_app/ausf_app.cpp
src/ausf_app/ausf_app.cpp
+6
-7
src/ausf_app/ausf_app.hpp
src/ausf_app/ausf_app.hpp
+2
-2
src/ausf_app/ausf_config.cpp
src/ausf_app/ausf_config.cpp
+0
-0
src/ausf_app/ausf_config.hpp
src/ausf_app/ausf_config.hpp
+0
-0
src/ausf_app/ausf_profile.cpp
src/ausf_app/ausf_profile.cpp
+1
-1
src/ausf_app/ausf_profile.hpp
src/ausf_app/ausf_profile.hpp
+4
-3
src/common/3gpp_29.510.h
src/common/3gpp_29.510.h
+0
-1
src/itti/itti_msg_sbi.hpp
src/itti/itti_msg_sbi.hpp
+1
-1
No files found.
src/ausf_app/CMakeLists.txt
View file @
2bb215f9
...
...
@@ -26,6 +26,7 @@ include_directories(${SRC_DIR}/utils)
include_directories
(
${
SRC_DIR
}
/utils/bstr
)
include_directories
(
${
SRC_DIR
}
/libngap
)
include_directories
(
${
SRC_DIR
}
/itti
)
include_directories
(
${
SRC_DIR
}
/ausf_app
)
################### code frrom amf cmakelists###########################
...
...
src/ausf_app/ausf_app.cpp
View file @
2bb215f9
...
...
@@ -44,7 +44,7 @@ void ausf_app_task(void*){
//TODO: periodic_getinfo_handler
break
;
case
TASK_AUSF_APP_TIMEOUT_NRF_HEARTBEAT
:
a
m
f_app_inst
->
timer_nrf_heartbeat_timeout
(
a
us
f_app_inst
->
timer_nrf_heartbeat_timeout
(
to
->
timer_id
,
to
->
arg2_user
);
break
;
default:
...
...
@@ -76,14 +76,14 @@ ausf_app::ausf_app()
}
void
ausf_app
::
register_to_nrf
(){
// Create a NF profile to this instance
generate_
sm
f_profile
();
generate_
aus
f_profile
();
// Send request to N11 to send NF registration to NRF
trigger_nf_registration_request
();
}
void
ausf_app
::
generate_ausf_profile
(){
generate_uuid
();
nf_instance_profile
.
set_nf_instance_id
(
a
m
f_instance_id
);
nf_instance_profile
.
set_nf_instance_id
(
a
us
f_instance_id
);
nf_instance_profile
.
set_nf_instance_name
(
"bupt-ausf"
);
nf_instance_profile
.
set_nf_type
(
"AUSF"
);
nf_instance_profile
.
set_nf_status
(
"REGISTERED"
);
...
...
@@ -113,8 +113,7 @@ void ausf_app::generate_ausf_profile(){
nf_instance_profile
.
display
();
}
void
ausf_app
::
trigger_nf_registration_request
(){
Logger
::
ausf_app
().
debug
(
"
Send ITTI msg to N11 task to trigger the registration request to NRF"
);
Logger
::
ausf_app
().
debug
(
"Send ITTI msg to N11 task to trigger the registration request to NRF"
);
std
::
shared_ptr
<
itti_sbi_register_nf_instance_request
>
itti_msg
=
std
::
make_shared
<
itti_sbi_register_nf_instance_request
>
(
TASK_AUSF_APP
,
TASK_AUSF_APP
);
...
...
@@ -122,7 +121,7 @@ void ausf_app::trigger_nf_registration_request(){
register_nf_instance
(
itti_msg
);
}
void
ausf_app
::
timer_nrf_heartbeat_timeout
(){
void
ausf_app
::
timer_nrf_heartbeat_timeout
(
timer_id_t
timer_id
,
uint64_t
arg2_user
){
}
void
ausf_app
::
generate_uuid
(){
ausf_instance_id
=
to_string
(
boost
::
uuids
::
random_generator
()());
...
...
src/ausf_app/ausf_app.hpp
View file @
2bb215f9
...
...
@@ -22,7 +22,7 @@ namespace ausf_application{
// Send request to N11 to send NF registration to NRF
void
trigger_nf_registration_request
();
void
generate_uuid
();
void
timer_nrf_heartbeat_timeout
();
void
timer_nrf_heartbeat_timeout
(
timer_id_t
timer_id
,
uint64_t
arg2_user
);
void
register_nf_instance
(
std
::
shared_ptr
<
itti_sbi_register_nf_instance_request
>
msg
);
private:
...
...
src/
utils
/ausf_config.cpp
→
src/
ausf_app
/ausf_config.cpp
View file @
2bb215f9
File moved
src/
utils
/ausf_config.hpp
→
src/
ausf_app
/ausf_config.hpp
View file @
2bb215f9
File moved
src/ausf_app/ausf_profile.cpp
View file @
2bb215f9
...
...
@@ -210,7 +210,7 @@ void nf_profile::from_json(const nlohmann::json& data) {
capacity
=
data
[
"capacity"
].
get
<
int
>
();
}
}
/------------------------------------------------------------------------------
/
/
------------------------------------------------------------------------------
void
ausf_profile
::
set_nf_services
(
const
std
::
vector
<
nf_service_t
>&
n
)
{
nf_services
=
n
;
}
...
...
src/ausf_app/ausf_profile.hpp
View file @
2bb215f9
...
...
@@ -11,6 +11,7 @@
#include <vector>
#include "logger.hpp"
#include "3gpp_29.510.h"
namespace
ausf_application
{
...
...
@@ -92,9 +93,9 @@ namespace ausf_application{
};
class
ausf_profile
:
public
nf_profile
{
public:
ausf_profile
()
:
nf_profile
()
{
custom_info
=
{};
}
ausf_profile
()
:
nf_profile
()
{
}
ausf_profile
(
const
std
::
string
&
id
)
:
nf_profile
(
id
)
{
custom_info
=
{};
}
ausf_profile
(
const
std
::
string
&
id
)
:
nf_profile
(
id
)
{
}
ausf_profile
&
operator
=
(
const
ausf_profile
&
s
)
{
nf_instance_id
=
s
.
nf_instance_id
;
...
...
src/common/3gpp_29.510.h
View file @
2bb215f9
...
...
@@ -24,7 +24,6 @@
#include <vector>
#include "3gpp_23.003.h"
enum
class
nf_status_e
{
REGISTERED
=
0
,
SUSPENDED
=
1
,
UNDISCOVERABLE
=
2
};
...
...
src/itti/itti_msg_sbi.hpp
View file @
2bb215f9
...
...
@@ -21,7 +21,7 @@ class itti_sbi_msg : public itti_msg {
}
};
class
itti_sbi_register_nf_instance_request
:
public
itti_
msg_sbi
{
class
itti_sbi_register_nf_instance_request
:
public
itti_
sbi_msg
{
public:
itti_sbi_register_nf_instance_request
(
const
task_id_t
orig
,
const
task_id_t
dest
)
...
...
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