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
d042a7a4
Commit
d042a7a4
authored
Feb 20, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE de-registration improvement
parent
249203f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/app/cli_cmd.cpp
src/app/cli_cmd.cpp
+5
-5
No files found.
src/app/cli_cmd.cpp
View file @
d042a7a4
...
@@ -91,7 +91,7 @@ static std::map<std::string, std::string> g_ueCmdToUsage = {
...
@@ -91,7 +91,7 @@ static std::map<std::string, std::string> g_ueCmdToUsage = {
{
"info"
,
"[option...]"
},
{
"info"
,
"[option...]"
},
{
"status"
,
"[option...]"
},
{
"status"
,
"[option...]"
},
{
"timers"
,
"[option...]"
},
{
"timers"
,
"[option...]"
},
{
"deregister"
,
"<
SWITCH-OFF|DISABLE-5G|NORMAL
>"
},
{
"deregister"
,
"<
switch-off|disable-5g|normal
>"
},
};
};
static
std
::
map
<
std
::
string
,
bool
>
g_ueCmdToHelpIfEmpty
=
{
static
std
::
map
<
std
::
string
,
bool
>
g_ueCmdToHelpIfEmpty
=
{
...
@@ -235,12 +235,12 @@ std::unique_ptr<UeCliCommand> ParseUeCliCommand(std::vector<std::string> &&token
...
@@ -235,12 +235,12 @@ std::unique_ptr<UeCliCommand> ParseUeCliCommand(std::vector<std::string> &&token
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-0FF
"
)
if
(
type
==
"
switch-off
"
)
cmd
->
isSwitchOff
=
true
;
cmd
->
isSwitchOff
=
true
;
else
if
(
type
==
"
DISABLE-5G
"
)
else
if
(
type
==
"
disable-5g
"
)
cmd
->
dueToDisable5g
=
true
;
cmd
->
dueToDisable5g
=
true
;
else
if
(
type
!=
"
NORMAL
"
)
else
if
(
type
!=
"
normal
"
)
CMD_ERR
(
"Invalid de-registration type, possible values are:
SWITCH-OFF, DISABLE-5G, NORMAL
"
)
CMD_ERR
(
"Invalid de-registration type, possible values are:
switch-off, disable-5g, normal
"
)
return
cmd
;
return
cmd
;
}
}
...
...
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