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
31993a37
Commit
31993a37
authored
Feb 20, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE de-registration improvement
parent
68d4137d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
src/app/cli_cmd.cpp
src/app/cli_cmd.cpp
+8
-0
src/app/cli_cmd.hpp
src/app/cli_cmd.hpp
+5
-0
src/ue/app/cmd_handler.cpp
src/ue/app/cmd_handler.cpp
+4
-0
No files found.
src/app/cli_cmd.cpp
View file @
31993a37
...
...
@@ -84,18 +84,21 @@ static std::map<std::string, std::string> g_ueCmdToDescription = {
{
"info"
,
"Show some information about the UE"
},
{
"status"
,
"Show some status information about the UE"
},
{
"timers"
,
"Dump current status of the timers in the UE"
},
{
"deregister"
,
"Perform de-registration by the UE"
},
};
static
std
::
map
<
std
::
string
,
std
::
string
>
g_ueCmdToUsage
=
{
{
"info"
,
"[option...]"
},
{
"status"
,
"[option...]"
},
{
"timers"
,
"[option...]"
},
{
"deregister"
,
"<deregister-type>"
},
};
static
std
::
map
<
std
::
string
,
bool
>
g_ueCmdToHelpIfEmpty
=
{
{
"info"
,
false
},
{
"status"
,
false
},
{
"timers"
,
false
},
{
"deregister"
,
true
},
};
std
::
unique_ptr
<
GnbCliCommand
>
ParseGnbCliCommand
(
std
::
vector
<
std
::
string
>
&&
tokens
,
std
::
string
&
error
,
...
...
@@ -224,6 +227,11 @@ std::unique_ptr<UeCliCommand> ParseUeCliCommand(std::vector<std::string> &&token
{
return
std
::
make_unique
<
UeCliCommand
>
(
UeCliCommand
::
TIMERS
);
}
else
if
(
subCmd
==
"deregister"
)
{
auto
cmd
=
std
::
make_unique
<
UeCliCommand
>
(
UeCliCommand
::
DE_REGISTER
);
return
cmd
;
}
return
nullptr
;
}
...
...
src/app/cli_cmd.hpp
View file @
31993a37
...
...
@@ -42,8 +42,13 @@ struct UeCliCommand
INFO
,
STATUS
,
TIMERS
,
DE_REGISTER
,
}
present
;
// DE_REGISTER
bool
isSwitchOff
{};
bool
dueToDisable5g
{};
explicit
UeCliCommand
(
PR
present
)
:
present
(
present
)
{
}
...
...
src/ue/app/cmd_handler.cpp
View file @
31993a37
...
...
@@ -115,6 +115,10 @@ void UeCmdHandler::HandleCmdImpl(TaskBase &base, NwUeCliCommand &msg)
msg
.
sendResult
(
ToJson
(
base
.
nasTask
->
timers
).
dumpYaml
());
break
;
}
case
app
:
:
UeCliCommand
::
DE_REGISTER
:
{
msg
.
sendError
(
"not implemented yet"
);
break
;
}
}
}
...
...
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