Commit ea444284 authored by aligungr's avatar aligungr

L3 RRC/NAS developments

parent 4b392a25
...@@ -157,14 +157,13 @@ void UeCmdHandler::handleCmdImpl(NmUeCliCommand &msg) ...@@ -157,14 +157,13 @@ void UeCmdHandler::handleCmdImpl(NmUeCliCommand &msg)
break; break;
} }
case app::UeCliCommand::PS_LIST: { case app::UeCliCommand::PS_LIST: {
std::vector<Json> arr{}; Json json = Json::Obj({});
for (auto *pduSession : m_base->nasTask->sm->m_pduSessions) for (auto *pduSession : m_base->nasTask->sm->m_pduSessions)
{ {
if (pduSession->psi == 0) if (pduSession->psi == 0 || pduSession->psState == EPsState::INACTIVE)
continue; continue;
arr.push_back(Json::Obj({ auto obj = Json::Obj({
{"ID", pduSession->psi},
{"state", ToJson(pduSession->psState)}, {"state", ToJson(pduSession->psState)},
{"session-type", ToJson(pduSession->sessionType)}, {"session-type", ToJson(pduSession->sessionType)},
{"apn", ::ToJson(pduSession->apn)}, {"apn", ::ToJson(pduSession->apn)},
...@@ -173,9 +172,11 @@ void UeCmdHandler::handleCmdImpl(NmUeCliCommand &msg) ...@@ -173,9 +172,11 @@ void UeCmdHandler::handleCmdImpl(NmUeCliCommand &msg)
{"address", ::ToJson(pduSession->pduAddress)}, {"address", ::ToJson(pduSession->pduAddress)},
{"ambr", ::ToJson(pduSession->sessionAmbr)}, {"ambr", ::ToJson(pduSession->sessionAmbr)},
{"data-pending", pduSession->uplinkPending}, {"data-pending", pduSession->uplinkPending},
})); });
json.put(std::to_string(pduSession->psi), obj);
} }
sendResult(msg.address, Json::Arr(arr).dumpYaml()); sendResult(msg.address, json.dumpYaml());
break; break;
} }
} }
......
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