Unverified Commit 6ca3a04d authored by fmeisel's avatar fmeisel Committed by GitHub

Update ue.cpp

parent 9896c8a4
...@@ -117,7 +117,7 @@ static nr::ue::UeConfig *ReadConfigYaml() ...@@ -117,7 +117,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
SingleSlice s{}; SingleSlice s{};
s.sst = yaml::GetInt32(sNssai, "sst", 1, 0xFF); s.sst = yaml::GetInt32(sNssai, "sst", 1, 0xFF);
if (yaml::HasField(sNssai, "sd")) if (yaml::HasField(sNssai, "sd"))
s.sd = octet3{yaml::GetInt32(sNssai, "sd", 1, 0xFFFFFF)}; s.sd = octet3{yaml::GetInt32(sNssai, "sd", 0, 0xFFFFFF)};
result->initials.defaultConfiguredNssai.slices.push_back(s); result->initials.defaultConfiguredNssai.slices.push_back(s);
} }
} }
...@@ -129,7 +129,7 @@ static nr::ue::UeConfig *ReadConfigYaml() ...@@ -129,7 +129,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
SingleSlice s{}; SingleSlice s{};
s.sst = yaml::GetInt32(sNssai, "sst", 1, 0xFF); s.sst = yaml::GetInt32(sNssai, "sst", 1, 0xFF);
if (yaml::HasField(sNssai, "sd")) if (yaml::HasField(sNssai, "sd"))
s.sd = octet3{yaml::GetInt32(sNssai, "sd", 1, 0xFFFFFF)}; s.sd = octet3{yaml::GetInt32(sNssai, "sd", 0, 0xFFFFFF)};
result->initials.configuredNssai.slices.push_back(s); result->initials.configuredNssai.slices.push_back(s);
} }
} }
...@@ -182,7 +182,7 @@ static nr::ue::UeConfig *ReadConfigYaml() ...@@ -182,7 +182,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
s.sNssai = SingleSlice{}; s.sNssai = SingleSlice{};
s.sNssai->sst = yaml::GetInt32(slice, "sst", 1, 0xFF); s.sNssai->sst = yaml::GetInt32(slice, "sst", 1, 0xFF);
if (yaml::HasField(slice, "sd")) if (yaml::HasField(slice, "sd"))
s.sNssai->sd = octet3{yaml::GetInt32(slice, "sd", 1, 0xFFFFFF)}; s.sNssai->sd = octet3{yaml::GetInt32(slice, "sd", 0, 0xFFFFFF)};
} }
std::string type = yaml::GetString(sess, "type"); std::string type = yaml::GetString(sess, "type");
......
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