mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 02:58:00 +00:00
Fixing DB Venue Devices list.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#include "framework/MicroService.h"
|
||||
|
||||
#include "RESTAPI_configurations_handler.h"
|
||||
#include "RESTObjects/RESTAPI_ProvObjects.h"
|
||||
#include "StorageService.h"
|
||||
@@ -66,12 +67,6 @@ namespace OpenWifi{
|
||||
InternalError(RESTAPI::Errors::CouldNotBeDeleted);
|
||||
}
|
||||
|
||||
// interfaces
|
||||
// metrics
|
||||
// radios
|
||||
// services
|
||||
// globals
|
||||
// unit
|
||||
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" };
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace OpenWifi {
|
||||
|
||||
|
||||
|
||||
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(!T.entity.empty()) {
|
||||
@@ -161,7 +159,6 @@ namespace OpenWifi {
|
||||
return R.ReturnObject(Answer);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif //OWPROV_RESTAPI_DB_HELPERS_H
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user