mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 17:52:28 +00:00
Debugging
This commit is contained in:
@@ -81,20 +81,17 @@ namespace OpenWifi{
|
||||
BadRequest(RESTAPI::Errors::NameMustBeSet);
|
||||
return false;
|
||||
}
|
||||
/* try {
|
||||
auto Blocks = P.parse(i.configuration).extract<Poco::JSON::Object::Ptr>();
|
||||
auto N = Blocks->getNames();
|
||||
for (const auto &j: N) {
|
||||
if (std::find(SectionNames.cbegin(), SectionNames.cend(), j) == SectionNames.cend()) {
|
||||
std::cout << "Block section name rejected: " << j << std::endl;
|
||||
BadRequest(RESTAPI::Errors::ConfigBlockInvalid);
|
||||
return false;
|
||||
}
|
||||
|
||||
auto Blocks = P.parse(i.configuration).extract<Poco::JSON::Object::Ptr>();
|
||||
auto N = Blocks->getNames();
|
||||
for (const auto &j: N) {
|
||||
if (std::find(SectionNames.cbegin(), SectionNames.cend(), j) == SectionNames.cend()) {
|
||||
std::cout << "Block section name rejected: " << j << std::endl;
|
||||
BadRequest(RESTAPI::Errors::ConfigBlockInvalid);
|
||||
return false;
|
||||
}
|
||||
} catch (...) {
|
||||
std::cout << "Failed parsing block" << std::endl;
|
||||
}
|
||||
*/
|
||||
|
||||
try {
|
||||
if (ValidateUCentralConfiguration(i.configuration, Error)) {
|
||||
/* nothing to do */ ;
|
||||
|
||||
Reference in New Issue
Block a user