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
b274d6d0
Commit
b274d6d0
authored
Jul 15, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some bug
parent
e9d28504
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
src/ausf_app/ausf_app.cpp
src/ausf_app/ausf_app.cpp
+14
-12
No files found.
src/ausf_app/ausf_app.cpp
View file @
b274d6d0
...
...
@@ -48,9 +48,9 @@ void ausf_app_task(void*){
{
case
SBI_REGISTER_NF_INSTANCE_RESPONSE
:
Logger
::
ausf_app
().
debug
(
"handle register response"
);
if
(
itti_
n11
_register_nf_instance_response
*
m
=
dynamic_cast
<
itti_
n11
_register_nf_instance_response
*>
(
msg
))
{
sm
f_app_inst
->
handle_itti_msg
(
std
::
ref
(
*
m
));
if
(
itti_
sbi
_register_nf_instance_response
*
m
=
dynamic_cast
<
itti_
sbi
_register_nf_instance_response
*>
(
msg
))
{
aus
f_app_inst
->
handle_itti_msg
(
std
::
ref
(
*
m
));
}
break
;
case
TIME_OUT
:
...
...
@@ -60,7 +60,7 @@ void ausf_app_task(void*){
{
case
TASK_AUSF_APP_PERIODIC_GETINFO
:
tid
=
itti_inst
->
timer_setup
(
1
0
,
0
,
TASK_AUSF_APP
,
2
0
,
0
,
TASK_AUSF_APP
,
TASK_AUSF_APP_PERIODIC_GETINFO
,
0
);
//TODO: periodic_getinfo_handler
break
;
...
...
@@ -93,6 +93,8 @@ ausf_app::ausf_app()
usleep
(
microsecond
);
register_to_nrf
();
}
timer_id_t
tid
=
itti_inst
->
timer_setup
(
20
,
0
,
TASK_AUSF_APP
,
TASK_AUSF_APP_PERIODIC_GETINFO
,
0
);
timer_nrf_heartbeat
=
itti_inst
->
timer_setup
(
10
,
0
,
TASK_AUSF_APP
,
TASK_AUSF_APP_TIMEOUT_NRF_HEARTBEAT
,
0
);
Logger
::
ausf_app
().
startup
(
"Started"
);
}
void
ausf_app
::
register_to_nrf
(){
...
...
@@ -153,15 +155,15 @@ void ausf_app::timer_nrf_heartbeat_timeout(timer_id_t timer_id, uint64_t arg2_us
patch_item
.
setPath
(
"/nfStatus"
);
patch_item
.
setValue
(
"REGISTERED"
);
itti_msg
->
patch_items
.
push_back
(
patch_item
);
itti_msg
->
sm
f_instance_id
=
ausf_instance_id
;
itti_msg
->
aus
f_instance_id
=
ausf_instance_id
;
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
0
!=
ret
)
{
Logger
::
sm
f_app
().
error
(
Logger
::
aus
f_app
().
error
(
"Could not send ITTI message %s to task TASK_AUSF_APP"
,
itti_msg
->
get_msg_name
());
}
else
{
Logger
::
sm
f_app
().
debug
(
Logger
::
aus
f_app
().
debug
(
"Set a timer to the next Heart-beat (%d)"
,
nf_instance_profile
.
get_nf_heartBeat_timer
());
timer_nrf_heartbeat
=
itti_inst
->
timer_setup
(
...
...
@@ -266,13 +268,13 @@ void ausf_app::register_nf_instance(std::shared_ptr<itti_sbi_register_nf_instanc
void
ausf_app
::
handle_itti_msg
(
itti_sbi_register_nf_instance_response
&
r
)
{
Logger
::
ausf_app
().
debug
(
"Handle NF Instance Registration response"
);
nf_instance_profile
=
r
.
profile
;
//
nf_instance_profile = r.profile;
// Set heartbeat timer
Logger
::
sm
f_app
().
debug
(
Logger
::
aus
f_app
().
debug
(
"Set value of NRF Heartbeat timer to %d"
,
r
.
profile
.
get_nf_heartBeat_timer
());
timer_nrf_heartbeat
=
itti_inst
->
timer_setup
(
/*
timer_nrf_heartbeat = itti_inst->timer_setup(
r.profile.get_nf_heartBeat_timer(), 0, TASK_AUSF_APP,
TASK_AUSF_APP_TIMEOUT_NRF_HEARTBEAT,
0
);
// TODO arg2_user
}
\ No newline at end of file
0);*/
// TODO arg2_user
}
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