mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-02 03:27:51 +00:00
Fixing Subscriber Device Config Change Update.
This commit is contained in:
@@ -219,14 +219,14 @@ namespace OpenWifi {
|
|||||||
void APConfig::AddConfiguration(const ProvObjects::DeviceConfigurationElementVec &Elements) {
|
void APConfig::AddConfiguration(const ProvObjects::DeviceConfigurationElementVec &Elements) {
|
||||||
for(const auto &i:Elements) {
|
for(const auto &i:Elements) {
|
||||||
if(i.weight==0) {
|
if(i.weight==0) {
|
||||||
VerboseElement VE{ .element = i};
|
VerboseElement VE{ .element = i, .info = ProvObjects::ObjectInfo{} };
|
||||||
Config_.push_back(VE);
|
Config_.push_back(VE);
|
||||||
} else {
|
} else {
|
||||||
// we need to insert after everything bigger or equal
|
// we need to insert after everything bigger or equal
|
||||||
auto Hint = std::lower_bound(Config_.cbegin(),Config_.cend(),i.weight,
|
auto Hint = std::lower_bound(Config_.cbegin(),Config_.cend(),i.weight,
|
||||||
[](const VerboseElement &Elem, uint64_t Value) {
|
[](const VerboseElement &Elem, uint64_t Value) {
|
||||||
return Elem.element.weight>=Value; });
|
return Elem.element.weight>=Value; });
|
||||||
VerboseElement VE{ .element = i};
|
VerboseElement VE{ .element = i, .info = ProvObjects::ObjectInfo{}};
|
||||||
Config_.insert(Hint,VE);
|
Config_.insert(Hint,VE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user