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
6f903ab7
Commit
6f903ab7
authored
May 28, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
cb4899d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
src/lib/app/cli_cmd.cpp
src/lib/app/cli_cmd.cpp
+4
-2
src/utils/common_types.cpp
src/utils/common_types.cpp
+2
-0
src/utils/common_types.hpp
src/utils/common_types.hpp
+1
-0
No files found.
src/lib/app/cli_cmd.cpp
View file @
6f903ab7
...
@@ -240,13 +240,15 @@ static std::unique_ptr<UeCliCommand> UeCliParseImpl(const std::string &subCmd, c
...
@@ -240,13 +240,15 @@ static std::unique_ptr<UeCliCommand> UeCliParseImpl(const std::string &subCmd, c
if
(
options
.
positionalCount
()
>
1
)
if
(
options
.
positionalCount
()
>
1
)
CMD_ERR
(
"Only one de-registration type is expected"
)
CMD_ERR
(
"Only one de-registration type is expected"
)
auto
type
=
options
.
getPositional
(
0
);
auto
type
=
options
.
getPositional
(
0
);
if
(
type
==
"switch-off"
)
if
(
type
==
"normal"
)
cmd
->
deregCause
=
EDeregCause
::
NORMAL
;
else
if
(
type
==
"switch-off"
)
cmd
->
deregCause
=
EDeregCause
::
SWITCH_OFF
;
cmd
->
deregCause
=
EDeregCause
::
SWITCH_OFF
;
else
if
(
type
==
"disable-5g"
)
else
if
(
type
==
"disable-5g"
)
cmd
->
deregCause
=
EDeregCause
::
DISABLE_5G
;
cmd
->
deregCause
=
EDeregCause
::
DISABLE_5G
;
else
if
(
type
==
"remove-sim"
)
else
if
(
type
==
"remove-sim"
)
cmd
->
deregCause
=
EDeregCause
::
USIM_REMOVAL
;
cmd
->
deregCause
=
EDeregCause
::
USIM_REMOVAL
;
else
if
(
type
!=
"normal"
)
else
CMD_ERR
(
"Invalid de-registration type, possible values are:
\"
normal
\"
,
\"
disable-5g
\"
,
\"
switch-off
\"
, "
CMD_ERR
(
"Invalid de-registration type, possible values are:
\"
normal
\"
,
\"
disable-5g
\"
,
\"
switch-off
\"
, "
"
\"
remove-sim
\"
"
)
"
\"
remove-sim
\"
"
)
return
cmd
;
return
cmd
;
...
...
src/utils/common_types.cpp
View file @
6f903ab7
...
@@ -128,6 +128,8 @@ Json ToJson(const EDeregCause &v)
...
@@ -128,6 +128,8 @@ Json ToJson(const EDeregCause &v)
{
{
switch
(
v
)
switch
(
v
)
{
{
case
EDeregCause
:
:
NORMAL
:
return
"NORMAL"
;
case
EDeregCause
:
:
SWITCH_OFF
:
case
EDeregCause
:
:
SWITCH_OFF
:
return
"SWITCH-OFF"
;
return
"SWITCH-OFF"
;
case
EDeregCause
:
:
USIM_REMOVAL
:
case
EDeregCause
:
:
USIM_REMOVAL
:
...
...
src/utils/common_types.hpp
View file @
6f903ab7
...
@@ -127,6 +127,7 @@ struct Supi
...
@@ -127,6 +127,7 @@ struct Supi
enum
class
EDeregCause
enum
class
EDeregCause
{
{
NORMAL
,
SWITCH_OFF
,
SWITCH_OFF
,
USIM_REMOVAL
,
USIM_REMOVAL
,
DISABLE_5G
,
DISABLE_5G
,
...
...
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