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
a51390c8
Commit
a51390c8
authored
Jul 15, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
register to nrf and heart-beat successful
parent
7a0439d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/ausf_app/ausf_app.cpp
src/ausf_app/ausf_app.cpp
+4
-4
src/ausf_app/ausf_app.hpp
src/ausf_app/ausf_app.hpp
+1
-1
No files found.
src/ausf_app/ausf_app.cpp
View file @
a51390c8
...
@@ -55,7 +55,7 @@ void ausf_app_task(void*){
...
@@ -55,7 +55,7 @@ void ausf_app_task(void*){
break
;
break
;
case
SBI_UPDATE_NF_INSTANCE_REQUEST
:
case
SBI_UPDATE_NF_INSTANCE_REQUEST
:
Logger
::
ausf_app
().
debug
(
"send update request"
);
Logger
::
ausf_app
().
debug
(
"send update request"
);
ausf_app_inst
->
update_nf_instance
(
std
::
static_pointer_cast
<
itti_
n11
_update_nf_instance_request
>
(
shared_msg
));
ausf_app_inst
->
update_nf_instance
(
std
::
static_pointer_cast
<
itti_
sbi
_update_nf_instance_request
>
(
shared_msg
));
break
;
break
;
case
TIME_OUT
:
case
TIME_OUT
:
if
(
itti_msg_timeout
*
to
=
dynamic_cast
<
itti_msg_timeout
*>
(
msg
))
if
(
itti_msg_timeout
*
to
=
dynamic_cast
<
itti_msg_timeout
*>
(
msg
))
...
@@ -114,7 +114,7 @@ void ausf_app::generate_ausf_profile(){
...
@@ -114,7 +114,7 @@ void ausf_app::generate_ausf_profile(){
nf_instance_profile
.
set_nf_instance_name
(
"bupt-ausf"
);
nf_instance_profile
.
set_nf_instance_name
(
"bupt-ausf"
);
nf_instance_profile
.
set_nf_type
(
"AUSF"
);
nf_instance_profile
.
set_nf_type
(
"AUSF"
);
nf_instance_profile
.
set_nf_status
(
"REGISTERED"
);
nf_instance_profile
.
set_nf_status
(
"REGISTERED"
);
nf_instance_profile
.
set_nf_heartBeat_timer
(
5
0
);
nf_instance_profile
.
set_nf_heartBeat_timer
(
1
0
);
nf_instance_profile
.
set_nf_priority
(
1
);
nf_instance_profile
.
set_nf_priority
(
1
);
nf_instance_profile
.
set_nf_capacity
(
100
);
nf_instance_profile
.
set_nf_capacity
(
100
);
nf_instance_profile
.
add_nf_ipv4_addresses
(
ausf_cfg
.
sbi
.
addr4
);
nf_instance_profile
.
add_nf_ipv4_addresses
(
ausf_cfg
.
sbi
.
addr4
);
...
@@ -283,7 +283,7 @@ void ausf_app::handle_itti_msg(itti_sbi_register_nf_instance_response& r) {
...
@@ -283,7 +283,7 @@ void ausf_app::handle_itti_msg(itti_sbi_register_nf_instance_response& r) {
0);*/
// TODO arg2_user
0);*/
// TODO arg2_user
}
}
void
ausf_app
::
update_nf_instance
(
void
ausf_app
::
update_nf_instance
(
std
::
shared_ptr
<
itti_
n11
_update_nf_instance_request
>
msg
)
{
std
::
shared_ptr
<
itti_
sbi
_update_nf_instance_request
>
msg
)
{
Logger
::
ausf_app
().
debug
(
Logger
::
ausf_app
().
debug
(
"Send NF Update to NRF (HTTP version %d)"
,
msg
->
http_version
);
"Send NF Update to NRF (HTTP version %d)"
,
msg
->
http_version
);
...
@@ -367,4 +367,4 @@ void ausf_app::update_nf_instance(
...
@@ -367,4 +367,4 @@ void ausf_app::update_nf_instance(
curl_easy_cleanup
(
curl
);
curl_easy_cleanup
(
curl
);
}
}
curl_global_cleanup
();
curl_global_cleanup
();
}
}
\ No newline at end of file
src/ausf_app/ausf_app.hpp
View file @
a51390c8
...
@@ -25,7 +25,7 @@ namespace ausf_application{
...
@@ -25,7 +25,7 @@ namespace ausf_application{
void
timer_nrf_heartbeat_timeout
(
timer_id_t
timer_id
,
uint64_t
arg2_user
);
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
);
void
register_nf_instance
(
std
::
shared_ptr
<
itti_sbi_register_nf_instance_request
>
msg
);
void
handle_itti_msg
(
itti_sbi_register_nf_instance_response
&
r
);
void
handle_itti_msg
(
itti_sbi_register_nf_instance_response
&
r
);
void
update_nf_instance
(
std
::
s
tatic_pointer_cast
<
itti_n11
_update_nf_instance_request
>
msg
);
void
update_nf_instance
(
std
::
s
hared_ptr
<
itti_sbi
_update_nf_instance_request
>
msg
);
private:
private:
std
::
string
ausf_instance_id
;
std
::
string
ausf_instance_id
;
...
...
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