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 ...@@ -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;
......
...@@ -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:
......
...@@ -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,
......
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