Unverified Commit a40d0eba authored by Ali Güngör's avatar Ali Güngör Committed by GitHub

Merge pull request #307 from fmeisel/master

SST and SD range update
parents 6df172f3 7663fab5
......@@ -70,7 +70,7 @@ static nr::gnb::GnbConfig *ReadConfigYaml()
SingleSlice s{};
s.sst = yaml::GetInt32(nssai, "sst", 1, 0xFF);
if (yaml::HasField(nssai, "sd"))
s.sd = octet3{yaml::GetInt32(nssai, "sd", 1, 0xFFFFFF)};
s.sd = octet3{yaml::GetInt32(nssai, "sd", 0, 0xFFFFFF)};
result->nssai.slices.push_back(s);
}
......
......@@ -117,7 +117,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
SingleSlice s{};
s.sst = yaml::GetInt32(sNssai, "sst", 1, 0xFF);
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);
}
}
......@@ -129,7 +129,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
SingleSlice s{};
s.sst = yaml::GetInt32(sNssai, "sst", 1, 0xFF);
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);
}
}
......@@ -182,7 +182,7 @@ static nr::ue::UeConfig *ReadConfigYaml()
s.sNssai = SingleSlice{};
s.sNssai->sst = yaml::GetInt32(slice, "sst", 1, 0xFF);
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");
......@@ -472,4 +472,4 @@ int main(int argc, char **argv)
while (true)
Loop();
}
\ No newline at end of file
}
......@@ -171,4 +171,4 @@ std::vector<YAML::Node> GetSequence(const YAML::Node &node, const std::string &n
return res;
}
} // namespace yaml
\ No newline at end of file
} // namespace yaml
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