Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
5b32aeb9
Commit
5b32aeb9
authored
May 03, 2021
by
hardy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/hack-exit-gnb-when-no-enb-nsa' into integration_2021_wk18_a
parents
a4139257
afbb08a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
ci-scripts/auto_start_gnb.sh
ci-scripts/auto_start_gnb.sh
+7
-0
openair2/X2AP/x2ap_eNB.c
openair2/X2AP/x2ap_eNB.c
+12
-0
No files found.
ci-scripts/auto_start_gnb.sh
0 → 100644
View file @
5b32aeb9
#!/bin/bash
while
true
do
echo
"gNB will be started automatically..."
sleep
1
sudo
.././cmake_targets/ran_build/build/nr-softmodem
-E
-O
../targets/PROJECTS/GENERIC-LTE-EPC/CONF/testing_gnb.conf
done
openair2/X2AP/x2ap_eNB.c
View file @
5b32aeb9
...
@@ -130,6 +130,18 @@ void x2ap_eNB_handle_sctp_association_resp(instance_t instance, sctp_new_associa
...
@@ -130,6 +130,18 @@ void x2ap_eNB_handle_sctp_association_resp(instance_t instance, sctp_new_associa
DevAssert
(
x2ap_enb_data_p
!=
NULL
);
DevAssert
(
x2ap_enb_data_p
!=
NULL
);
dump_trees
();
dump_trees
();
/* gNB: exit if connection to eNB failed - to be modified if needed.
* We may want to try to connect over and over again until we succeed
* but the modifications to the code to get this behavior are complex.
* Exit on error is a simple solution that can be caught by a script
* for example.
*/
if
(
instance_p
->
cell_type
==
CELL_MACRO_GNB
&&
sctp_new_association_resp
->
sctp_state
==
SCTP_STATE_UNREACHABLE
)
{
X2AP_ERROR
(
"association with eNB failed, is it running? If no, run it first. If yes, check IP addresses in your configuration file.
\n
"
);
exit
(
1
);
}
if
(
sctp_new_association_resp
->
sctp_state
!=
SCTP_STATE_ESTABLISHED
)
{
if
(
sctp_new_association_resp
->
sctp_state
!=
SCTP_STATE_ESTABLISHED
)
{
X2AP_WARN
(
"Received unsuccessful result for SCTP association (%u), instance %ld, cnx_id %u
\n
"
,
X2AP_WARN
(
"Received unsuccessful result for SCTP association (%u), instance %ld, cnx_id %u
\n
"
,
sctp_new_association_resp
->
sctp_state
,
sctp_new_association_resp
->
sctp_state
,
...
...
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