mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 17:52:28 +00:00
Adding tags & rrm.
This commit is contained in:
@@ -207,6 +207,7 @@ namespace OpenWifi{
|
||||
|
||||
AssignIfPresent(Obj, "name", Existing.info.name);
|
||||
AssignIfPresent(Obj,"description", Existing.info.description);
|
||||
AssignIfPresent(Obj, "rrm", Existing.rrm);
|
||||
NewConfig.info.modified = std::time(nullptr);
|
||||
|
||||
if(!NewConfig.variables.empty())
|
||||
|
||||
@@ -157,10 +157,9 @@ namespace OpenWifi{
|
||||
Existing.info.notes.insert(Existing.info.notes.begin(),i);
|
||||
}
|
||||
|
||||
if(!NewEntity.info.name.empty())
|
||||
Existing.info.name = NewEntity.info.name;
|
||||
if(!NewEntity.info.description.empty())
|
||||
Existing.info.description = NewEntity.info.description;
|
||||
AssignIfPresent(RawObject, "rrm", Existing.rrm);
|
||||
AssignIfPresent(RawObject, "name", Existing.info.name);
|
||||
AssignIfPresent(RawObject, "description", Existing.info.description);
|
||||
|
||||
Existing.info.modified = std::time(nullptr);
|
||||
|
||||
|
||||
@@ -177,6 +177,7 @@ namespace OpenWifi{
|
||||
AssignIfPresent(RawObject, "entity",NewEntity);
|
||||
AssignIfPresent(RawObject, "location",NewLocation);
|
||||
AssignIfPresent(RawObject, "contact",NewContact);
|
||||
AssignIfPresent(RawObject, "rrm",Existing.rrm);
|
||||
|
||||
if(!NewEntity.empty() && !NewVenue.empty()) {
|
||||
BadRequest(RESTAPI::Errors::NotBoth);
|
||||
|
||||
@@ -161,6 +161,7 @@ namespace OpenWifi{
|
||||
|
||||
AssignIfPresent(RawObject, "name", Existing.info.name);
|
||||
AssignIfPresent(RawObject, "description", Existing.info.description);
|
||||
AssignIfPresent(RawObject, "rrm",Existing.rrm);
|
||||
|
||||
std::string MoveEntity;
|
||||
if(AssignIfPresent(RawObject, "entity", MoveEntity) && !Storage()->EntityDB().Exists("id",MoveEntity)) {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
},
|
||||
{
|
||||
"type": "venue",
|
||||
"name": "Olymic Statium",
|
||||
"name": "Olympic Stadium",
|
||||
"venues": []
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user