Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
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
wangjie
OpenXG-RAN
Commits
3a78d85f
Commit
3a78d85f
authored
Apr 23, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FlexRAN: Handle enb_config_reply reconfiguration message
parent
3d8586a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
openair2/ENB_APP/flexran_agent_common.c
openair2/ENB_APP/flexran_agent_common.c
+20
-0
openair2/ENB_APP/flexran_agent_common.h
openair2/ENB_APP/flexran_agent_common.h
+7
-0
openair2/ENB_APP/flexran_agent_handler.c
openair2/ENB_APP/flexran_agent_handler.c
+1
-1
No files found.
openair2/ENB_APP/flexran_agent_common.c
View file @
3a78d85f
...
...
@@ -1101,5 +1101,25 @@ int flexran_agent_destroy_rrc_measurement(Protocol__FlexranMessage *msg){
return
0
;
}
int
flexran_agent_handle_enb_config_reply
(
mid_t
mod_id
,
const
void
*
params
,
Protocol__FlexranMessage
**
msg
)
{
Protocol__FlexranMessage
*
input
=
(
Protocol__FlexranMessage
*
)
params
;
Protocol__FlexEnbConfigReply
*
enb_config
=
input
->
enb_config_reply_msg
;
if
(
enb_config
->
n_cell_config
==
0
)
{
LOG_W
(
FLEXRAN_AGENT
,
"received enb_config_reply message does not contain a cell_config
\n
"
);
*
msg
=
NULL
;
return
0
;
}
if
(
enb_config
->
n_cell_config
>
1
)
LOG_W
(
FLEXRAN_AGENT
,
"ignoring slice configs for other cell except cell 0
\n
"
);
if
(
enb_config
->
cell_config
[
0
]
->
slice_config
)
prepare_update_slice_config
(
mod_id
,
enb_config
->
cell_config
[
0
]
->
slice_config
);
/* could test for cell configs here and maybe reconfigure/soft-restart */
*
msg
=
NULL
;
return
0
;
}
openair2/ENB_APP/flexran_agent_common.h
View file @
3a78d85f
...
...
@@ -167,4 +167,11 @@ void flexran_agent_send_update_stats(mid_t mod_id);
err_code_t
flexran_agent_enable_cont_stats_update
(
mid_t
mod_id
,
xid_t
xid
,
stats_request_config_t
*
stats_req
)
;
err_code_t
flexran_agent_disable_cont_stats_update
(
mid_t
mod_id
);
/* Handle a received eNB config reply message as an "order" to reconfigure. It
* does not come as a reconfiguration message as this is a "structured"
* ProtoBuf message (as opposed to "unstructured" YAML). There is no destructor
* since we do not reply to this message (yet). Instead, the controller has to
* issue another eNB config request message. */
int
flexran_agent_handle_enb_config_reply
(
mid_t
mod_id
,
const
void
*
params
,
Protocol__FlexranMessage
**
msg
);
#endif
openair2/ENB_APP/flexran_agent_handler.c
View file @
3a78d85f
...
...
@@ -46,7 +46,7 @@ flexran_agent_message_decoded_callback agent_messages_callback[][3] = {
{
0
,
0
,
0
},
/*PROTOCOK__FLEXRAN_MESSAGE__MSG_SF_TRIGGER_MSG*/
{
0
,
0
,
0
},
/*PROTOCOL__FLEXRAN_MESSAGE__MSG_UL_SR_INFO_MSG*/
{
flexran_agent_enb_config_reply
,
0
,
0
},
/*PROTOCOL__FLEXRAN_MESSAGE__MSG_ENB_CONFIG_REQUEST_MSG*/
{
0
,
0
,
0
},
/*PROTOCOL__FLEXRAN_MESSAGE__MSG_ENB_CONFIG_REPLY_MSG*/
{
flexran_agent_handle_enb_config_reply
,
0
,
0
},
/*PROTOCOL__FLEXRAN_MESSAGE__MSG_ENB_CONFIG_REPLY_MSG*/
{
flexran_agent_ue_config_reply
,
0
,
0
},
/*PROTOCOL__FLEXRAN_MESSAGE__MSG_UE_CONFIG_REQUEST_MSG*/
{
0
,
0
,
0
},
/*PROTOCOL__FLEXRAN_MESSAGE__MSG_UE_CONFIG_REPLY_MSG*/
{
flexran_agent_lc_config_reply
,
0
,
0
},
/*PROTOCOL__FLEXRAN_MESSAGE__MSG_LC_CONFIG_REQUEST_MSG*/
...
...
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