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
60f7a27e
Commit
60f7a27e
authored
Feb 14, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CLI improvements
parent
d7d372bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
15 deletions
+21
-15
src/ue/app/cmd_handler.cpp
src/ue/app/cmd_handler.cpp
+1
-7
src/ue/types.cpp
src/ue/types.cpp
+15
-4
src/ue/types.hpp
src/ue/types.hpp
+5
-4
No files found.
src/ue/app/cmd_handler.cpp
View file @
60f7a27e
...
@@ -95,13 +95,7 @@ void UeCmdHandler::HandleCmdImpl(TaskBase &base, NwUeCliCommand &msg)
...
@@ -95,13 +95,7 @@ void UeCmdHandler::HandleCmdImpl(TaskBase &base, NwUeCliCommand &msg)
break
;
break
;
}
}
case
app
:
:
UeCliCommand
::
INFO
:
{
case
app
:
:
UeCliCommand
::
INFO
:
{
Json
json
=
Json
::
Obj
({
msg
.
sendResult
(
ToJson
(
*
base
.
config
).
dumpYaml
());
{
"supi"
,
ToJson
(
base
.
config
->
supi
)},
{
"plmn"
,
ToJson
(
base
.
config
->
plmn
)},
{
"imei"
,
::
ToJson
(
base
.
config
->
imei
)},
{
"imeisv"
,
::
ToJson
(
base
.
config
->
imeiSv
)},
});
msg
.
sendResult
(
json
.
dumpYaml
());
break
;
break
;
}
}
}
}
...
...
src/ue/types.cpp
View file @
60f7a27e
...
@@ -22,7 +22,7 @@ UeTimers::UeTimers()
...
@@ -22,7 +22,7 @@ UeTimers::UeTimers()
{
{
}
}
Json
ToJson
(
const
ECmState
&
state
)
Json
ToJson
(
const
ECmState
&
state
)
{
{
switch
(
state
)
switch
(
state
)
{
{
...
@@ -35,7 +35,7 @@ Json ToJson(const ECmState& state)
...
@@ -35,7 +35,7 @@ Json ToJson(const ECmState& state)
}
}
}
}
Json
ToJson
(
const
ERmState
&
state
)
Json
ToJson
(
const
ERmState
&
state
)
{
{
switch
(
state
)
switch
(
state
)
{
{
...
@@ -48,7 +48,7 @@ Json ToJson(const ERmState& state)
...
@@ -48,7 +48,7 @@ Json ToJson(const ERmState& state)
}
}
}
}
Json
ToJson
(
const
EMmState
&
state
)
Json
ToJson
(
const
EMmState
&
state
)
{
{
switch
(
state
)
switch
(
state
)
{
{
...
@@ -69,7 +69,7 @@ Json ToJson(const EMmState& state)
...
@@ -69,7 +69,7 @@ Json ToJson(const EMmState& state)
}
}
}
}
Json
ToJson
(
const
EMmSubState
&
state
)
Json
ToJson
(
const
EMmSubState
&
state
)
{
{
switch
(
state
)
switch
(
state
)
{
{
...
@@ -120,4 +120,15 @@ Json ToJson(const EMmSubState& state)
...
@@ -120,4 +120,15 @@ Json ToJson(const EMmSubState& state)
}
}
}
}
Json
ToJson
(
const
UeConfig
&
v
)
{
return
Json
::
Obj
({
{
"supi"
,
ToJson
(
v
.
supi
)},
{
"plmn"
,
ToJson
(
v
.
plmn
)},
{
"imei"
,
::
ToJson
(
v
.
imei
)},
{
"imeiSv"
,
::
ToJson
(
v
.
imeiSv
)},
{
"nssai"
,
::
ToJson
(
v
.
nssais
)},
});
}
}
// namespace nr::ue
}
// namespace nr::ue
src/ue/types.hpp
View file @
60f7a27e
...
@@ -359,9 +359,10 @@ struct UeStatusInfo
...
@@ -359,9 +359,10 @@ struct UeStatusInfo
std
::
optional
<
UePduSessionInfo
>
pduSessions
[
16
]{};
std
::
optional
<
UePduSessionInfo
>
pduSessions
[
16
]{};
};
};
Json
ToJson
(
const
ECmState
&
state
);
Json
ToJson
(
const
ECmState
&
state
);
Json
ToJson
(
const
ERmState
&
state
);
Json
ToJson
(
const
ERmState
&
state
);
Json
ToJson
(
const
EMmState
&
state
);
Json
ToJson
(
const
EMmState
&
state
);
Json
ToJson
(
const
EMmSubState
&
state
);
Json
ToJson
(
const
EMmSubState
&
state
);
Json
ToJson
(
const
UeConfig
&
v
);
}
// namespace nr::ue
}
// namespace nr::ue
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