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
a3248cc4
Commit
a3248cc4
authored
Mar 31, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PS establishment over CLI
parent
e6939cc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
src/app/cli_cmd.cpp
src/app/cli_cmd.cpp
+18
-1
No files found.
src/app/cli_cmd.cpp
View file @
a3248cc4
...
...
@@ -123,6 +123,23 @@ static opt::OptionsDescription DefaultDesc(const std::string &subCommand, const
return
{{},
{},
entry
.
descriptionText
,
{},
subCommand
,
{
entry
.
usageText
},
entry
.
helpIfEmpty
,
true
};
}
static
opt
::
OptionsDescription
DescForPsEstablish
(
const
std
::
string
&
subCommand
,
const
CmdEntry
&
entry
)
{
std
::
string
usage1
=
"<session-type> [options]"
;
std
::
string
usage2
=
"IPv4 --sst 1 --sd 1 --dnn internet"
;
std
::
string
usage3
=
"IPv4 --emergency"
;
auto
res
=
opt
::
OptionsDescription
{
{},
{},
entry
.
descriptionText
,
{},
subCommand
,
{
usage1
,
usage2
,
usage3
},
entry
.
helpIfEmpty
,
true
};
res
.
items
.
emplace_back
(
std
::
nullopt
,
"sst"
,
"SST value of the PDU session (Optional)"
,
"value"
);
res
.
items
.
emplace_back
(
std
::
nullopt
,
"sd"
,
"SD value of the PDU session (Optional)"
,
"value"
);
res
.
items
.
emplace_back
(
'n'
,
"dnn"
,
"DNN/APN value of the PDU session (Optional)"
,
"apn"
);
res
.
items
.
emplace_back
(
'e'
,
"emergency"
,
"Request as an emergency session (Optional)"
,
std
::
nullopt
);
return
res
;
}
namespace
app
{
...
...
@@ -141,7 +158,7 @@ static OrderedMap<std::string, CmdEntry> g_ueCmdEntries = {
{
"timers"
,
{
"Dump current status of the timers in the UE"
,
""
,
DefaultDesc
,
false
}},
{
"deregister"
,
{
"Perform a de-registration by the UE"
,
"<normal|disable-5g|switch-off|remove-sim>"
,
DefaultDesc
,
true
}},
{
"ps-establish"
,
{
"Trigger a PDU session establishment procedure"
,
"
<options>"
,
DefaultDesc
,
true
}},
{
"ps-establish"
,
{
"Trigger a PDU session establishment procedure"
,
"
"
,
DescForPsEstablish
,
true
}},
{
"ps-release"
,
{
"Trigger a PDU session release procedure"
,
"<pdu-session-id>..."
,
DefaultDesc
,
true
}},
{
"ps-release-all"
,
{
"Trigger PDU session release procedures for all active sessions"
,
""
,
DefaultDesc
,
false
}},
};
...
...
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