mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 19:17:47 +00:00
Adding removal subscriber
This commit is contained in:
@@ -34,6 +34,7 @@ namespace OpenWifi{
|
||||
}
|
||||
|
||||
void RESTAPI_inventory_handler::DoGet() {
|
||||
|
||||
ProvObjects::InventoryTag Existing;
|
||||
std::string SerialNumber = GetBinding(RESTAPI::Protocol::SERIALNUMBER,"");
|
||||
if(SerialNumber.empty() || !DB_.GetRecord(RESTAPI::Protocol::SERIALNUMBER,SerialNumber,Existing)) {
|
||||
|
||||
@@ -364,7 +364,6 @@ namespace OpenWifi {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
template<> void ORM::DB< OpenWifi::InventoryDBRecordType, OpenWifi::ProvObjects::InventoryTag>::Convert(const OpenWifi::InventoryDBRecordType &In, OpenWifi::ProvObjects::InventoryTag &Out) {
|
||||
@@ -389,7 +388,8 @@ template<> void ORM::DB< OpenWifi::InventoryDBRecordType, OpenWifi::ProvObjec
|
||||
Out.managementPolicy = In.get<18>();
|
||||
Out.state = In.get<19>();
|
||||
Out.devClass = In.get<20>();
|
||||
Out.realMacAddress = In.get<21>();
|
||||
Out.locale = In.get<21>();
|
||||
Out.realMacAddress = In.get<22>();
|
||||
}
|
||||
|
||||
template<> void ORM::DB< OpenWifi::InventoryDBRecordType, OpenWifi::ProvObjects::InventoryTag>::Convert(const OpenWifi::ProvObjects::InventoryTag &In, OpenWifi::InventoryDBRecordType &Out) {
|
||||
@@ -414,5 +414,6 @@ template<> void ORM::DB< OpenWifi::InventoryDBRecordType, OpenWifi::ProvObjec
|
||||
Out.set<18>(In.managementPolicy);
|
||||
Out.set<19>(In.state);
|
||||
Out.set<20>(In.devClass);
|
||||
Out.set<21>(In.realMacAddress);
|
||||
Out.set<21>(In.locale);
|
||||
Out.set<22>(In.realMacAddress);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user