Commit 6f903ab7 authored by aligungr's avatar aligungr

L3 RRC/NAS developments

parent cb4899d2
......@@ -240,13 +240,15 @@ static std::unique_ptr<UeCliCommand> UeCliParseImpl(const std::string &subCmd, c
if (options.positionalCount() > 1)
CMD_ERR("Only one de-registration type is expected")
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;
else if (type == "disable-5g")
cmd->deregCause = EDeregCause::DISABLE_5G;
else if (type == "remove-sim")
cmd->deregCause = EDeregCause::USIM_REMOVAL;
else if (type != "normal")
else
CMD_ERR("Invalid de-registration type, possible values are: \"normal\", \"disable-5g\", \"switch-off\", "
"\"remove-sim\"")
return cmd;
......
......@@ -128,6 +128,8 @@ Json ToJson(const EDeregCause &v)
{
switch (v)
{
case EDeregCause::NORMAL:
return "NORMAL";
case EDeregCause::SWITCH_OFF:
return "SWITCH-OFF";
case EDeregCause::USIM_REMOVAL:
......
......@@ -127,6 +127,7 @@ struct Supi
enum class EDeregCause
{
NORMAL,
SWITCH_OFF,
USIM_REMOVAL,
DISABLE_5G,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment