Fixing DB Venue Devices list.

This commit is contained in:
stephb9959
2021-10-24 22:12:15 -07:00
parent 5f73f311e8
commit 20960ac00e
4 changed files with 3 additions and 41 deletions

2
build
View File

@@ -1 +1 @@
435 437

View File

@@ -6,7 +6,8 @@
// Arilia Wireless Inc. // Arilia Wireless Inc.
// //
#include "framework/MicroService.h" #include "framework/MicroService.h"
#include "RESTAPI_configurations_handler.h" #include "RESTAPI_configurations_handler.h"
#include "RESTObjects/RESTAPI_ProvObjects.h" #include "RESTObjects/RESTAPI_ProvObjects.h"
#include "StorageService.h" #include "StorageService.h"
@@ -66,12 +67,6 @@ namespace OpenWifi{
InternalError(RESTAPI::Errors::CouldNotBeDeleted); InternalError(RESTAPI::Errors::CouldNotBeDeleted);
} }
// interfaces
// metrics
// radios
// services
// globals
// unit
bool RESTAPI_configurations_handler::ValidateConfigBlock(const ProvObjects::DeviceConfiguration &Config, std::string & Error) { bool RESTAPI_configurations_handler::ValidateConfigBlock(const ProvObjects::DeviceConfiguration &Config, std::string & Error) {
static const std::vector<std::string> SectionNames{ "globals", "interfaces", "metrics", "radios", "services", "unit" }; static const std::vector<std::string> SectionNames{ "globals", "interfaces", "metrics", "radios", "services", "unit" };

View File

@@ -11,8 +11,6 @@
namespace OpenWifi { namespace OpenWifi {
template <typename R, typename Q = decltype(R{}.entity)> void Extend_entity(const R &T, Poco::JSON::Object &EI ) { template <typename R, typename Q = decltype(R{}.entity)> void Extend_entity(const R &T, Poco::JSON::Object &EI ) {
if constexpr(std::is_same_v<Q,std::string>) { if constexpr(std::is_same_v<Q,std::string>) {
if(!T.entity.empty()) { if(!T.entity.empty()) {
@@ -161,7 +159,6 @@ namespace OpenWifi {
return R.ReturnObject(Answer); return R.ReturnObject(Answer);
} }
} }
#endif //OWPROV_RESTAPI_DB_HELPERS_H #endif //OWPROV_RESTAPI_DB_HELPERS_H

View File

@@ -1,30 +0,0 @@
//
// Created by stephane bourque on 2021-08-17.
//
#ifndef OWPROV_DBHELPERS_H
#define OWPROV_DBHELPERS_H
#include "storage/storage_entity.h"
#include "storage/storage_venue.h"
#include "storage/storage_inventory.h"
#include "storage/storage_contact.h"
#include "storage/storage_location.h"
#include "storage/storage_policies.h"
namespace OpenWifi {
template <typename DB> bool AddChild(DB &db, const std::string &parent_uuid, const std::string &child_uuid) {
}
// DB.getrecord("id",parent_uuid,P);
// P.children.push_back(child);
// DB.updaterecord(Parent_uuid,P);
}
}
#endif //OWPROV_DBHELPERS_H