Commit 62d11fe7 authored by aligungr's avatar aligungr

UE/gNB executable refactor

parent b41ecee9
...@@ -71,9 +71,7 @@ static std::map<std::string, std::string> g_gnbCmdToDescription = { ...@@ -71,9 +71,7 @@ static std::map<std::string, std::string> g_gnbCmdToDescription = {
}; };
static std::map<std::string, std::string> g_gnbCmdToUsage = { static std::map<std::string, std::string> g_gnbCmdToUsage = {
{"status", ""}, {"info", ""}, {"status", ""}, {"info", ""}, {"amf-list", ""}, {"amf-info", "<amf-id>"}, {"ue-list", ""}, {"ue-count", ""},
{"amf-list", ""}, {"amf-info", "<amf-id>"},
{"ue-list", ""}, {"ue-count", ""},
}; };
static std::map<std::string, bool> g_gnbCmdToHelpIfEmpty = {{"status", false}, {"info", false}, static std::map<std::string, bool> g_gnbCmdToHelpIfEmpty = {{"status", false}, {"info", false},
...@@ -91,7 +89,7 @@ static std::map<std::string, std::string> g_ueCmdToUsage = { ...@@ -91,7 +89,7 @@ static std::map<std::string, std::string> g_ueCmdToUsage = {
{"info", ""}, {"info", ""},
{"status", ""}, {"status", ""},
{"timers", ""}, {"timers", ""},
{"deregister", "<switch-off|disable-5g|normal>"}, {"deregister", "<normal|disable-5g|switch-off>"},
}; };
static std::map<std::string, bool> g_ueCmdToHelpIfEmpty = { static std::map<std::string, bool> g_ueCmdToHelpIfEmpty = {
...@@ -240,7 +238,7 @@ std::unique_ptr<UeCliCommand> ParseUeCliCommand(std::vector<std::string> &&token ...@@ -240,7 +238,7 @@ std::unique_ptr<UeCliCommand> ParseUeCliCommand(std::vector<std::string> &&token
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: \"normal\", \"disable-5g\", \"switch-off\"")
return cmd; return cmd;
} }
......
...@@ -238,7 +238,7 @@ struct NwUeNasToApp : NtsMessage ...@@ -238,7 +238,7 @@ struct NwUeNasToApp : NtsMessage
struct NwUeStatusUpdate : NtsMessage struct NwUeStatusUpdate : NtsMessage
{ {
static constexpr const int SESSION_ESTABLISHMENT = 5; static constexpr const int SESSION_ESTABLISHMENT = 1;
const int what{}; const int what{};
......
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