Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
Libraries
UERANSIM
Commits
2bf7f754
Commit
2bf7f754
authored
Feb 13, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gNB CLI improvements
parent
f7279026
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
src/gnb/mr/task.hpp
src/gnb/mr/task.hpp
+1
-0
src/gnb/types.cpp
src/gnb/types.cpp
+22
-2
src/gnb/types.hpp
src/gnb/types.hpp
+2
-0
No files found.
src/gnb/mr/task.hpp
View file @
2bf7f754
...
...
@@ -10,6 +10,7 @@
#include "rls.hpp"
#include <gnb/nts.hpp>
#include <gnb/types.hpp>
#include <memory>
#include <thread>
#include <udp/server_task.hpp>
...
...
src/gnb/types.cpp
View file @
2bf7f754
...
...
@@ -10,7 +10,10 @@
#include <iomanip>
#include <sstream>
std
::
string
nr
::
gnb
::
GnbStatusInfo
::
toString
()
const
namespace
nr
::
gnb
{
std
::
string
GnbStatusInfo
::
toString
()
const
{
std
::
stringstream
ss
{};
ss
<<
"is-NGAP-up: "
;
...
...
@@ -18,7 +21,7 @@ std::string nr::gnb::GnbStatusInfo::toString() const
return
ss
.
str
();
}
std
::
string
nr
::
gnb
::
GnbConfig
::
toString
()
const
std
::
string
GnbConfig
::
toString
()
const
{
std
::
stringstream
ss
{};
ss
<<
"nci: "
<<
this
->
nci
<<
"
\n
"
;
...
...
@@ -30,3 +33,20 @@ std::string nr::gnb::GnbConfig::toString() const
ss
<<
"name: "
<<
this
->
name
;
return
ss
.
str
();
}
const
char
*
EnumToString
(
EAmfState
v
)
{
switch
(
v
)
{
case
EAmfState
:
:
NOT_CONNECTED
:
return
"NOT_CONNECTED"
;
case
EAmfState
:
:
WAITING_NG_SETUP
:
return
"WAITING_NG_SETUP"
;
case
EAmfState
:
:
CONNECTED
:
return
"CONNECTED"
;
default:
return
"<?>"
;
}
}
}
// namespace nr::gnb
src/gnb/types.hpp
View file @
2bf7f754
...
...
@@ -302,4 +302,6 @@ struct MrUeContext
std
::
string
name
;
};
const
char
*
EnumToString
(
EAmfState
v
);
}
// namespace nr::gnb
\ No newline at end of file
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