Commit 2d2a23ea authored by aligungr's avatar aligungr

UE CLI improvements

parent 021891ce
......@@ -130,10 +130,8 @@ void UeAppTask::receiveStatusUpdate(NwUeStatusUpdate &msg)
UePduSessionInfo sessionInfo{};
sessionInfo.psi = session->psi;
if (session->apn.has_value())
sessionInfo.apn = session->apn.value();
if(session->sNssai.has_value())
sessionInfo.sNssai = session->sNssai.value();
sessionInfo.apn = session->apn;
sessionInfo.sNssai = session->sNssai;
sessionInfo.type = nas::utils::EnumToString(session->sessionType);
if (session->pduAddress.has_value())
sessionInfo.address = utils::OctetStringToIp(session->pduAddress->pduAddressInformation);
......
......@@ -237,14 +237,12 @@ Json ToJson(const EPsState &state)
Json ToJson(const UePduSessionInfo &v)
{
return Json::Obj({
{"id", v.psi},
{"type", v.type},
{"address", v.address},
{"emergency", v.isEmergency},
{"apn", v.apn},
{"sNssai", ToJson(v.sNssai)}
});
return Json::Obj({{"id", v.psi},
{"type", v.type},
{"address", v.address},
{"emergency", v.isEmergency},
{"apn", ::ToJson(v.apn)},
{"s-nssai", ToJson(v.sNssai)}});
}
Json ToJson(const EServiceReqCause &v)
......
......@@ -390,8 +390,8 @@ struct UePduSessionInfo
std::string address{};
bool isEmergency{};
bool uplinkPending{};
std::string apn{};
SingleSlice sNssai{};
std::optional<std::string> apn{};
std::optional<SingleSlice> sNssai{};
};
enum class ERegUpdateCause
......
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