mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-02 11:37:54 +00:00
Adding tree import.
This commit is contained in:
@@ -166,7 +166,9 @@ namespace OpenWifi {
|
|||||||
else {
|
else {
|
||||||
Storage()->EntityDB().AddChild("id",E.parent,E.info.id);
|
Storage()->EntityDB().AddChild("id",E.parent,E.info.id);
|
||||||
}
|
}
|
||||||
Storage()->EntityDB().GetRecord("id",E.info.id,E);
|
ProvObjects::Entity NE;
|
||||||
|
Storage()->EntityDB().GetRecord("id",E.info.id,NE);
|
||||||
|
E = NE;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -57,8 +57,9 @@ namespace OpenWifi {
|
|||||||
Storage()->ContactDB().AddInUse("id",V.contact, Storage()->VenueDB().Prefix(), V.info.id);
|
Storage()->ContactDB().AddInUse("id",V.contact, Storage()->VenueDB().Prefix(), V.info.id);
|
||||||
if(!V.managementPolicy.empty())
|
if(!V.managementPolicy.empty())
|
||||||
Storage()->PolicyDB().AddInUse("id",V.managementPolicy, Storage()->VenueDB().Prefix(), V.info.id);
|
Storage()->PolicyDB().AddInUse("id",V.managementPolicy, Storage()->VenueDB().Prefix(), V.info.id);
|
||||||
|
ProvObjects::Venue NV;
|
||||||
Storage()->VenueDB().GetRecord("id",V.info.id,V);
|
Storage()->VenueDB().GetRecord("id",V.info.id,NV);
|
||||||
|
V = NV;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user