mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-30 10:12:29 +00:00
Fixing discovery.
This commit is contained in:
@@ -47,6 +47,7 @@ namespace OpenWifi {
|
|||||||
void ImportTree(const Poco::JSON::Object::Ptr &Ptr, const std::string & Node = RootUUID_ );
|
void ImportTree(const Poco::JSON::Object::Ptr &Ptr, const std::string & Node = RootUUID_ );
|
||||||
void ImportVenues(const Poco::JSON::Object::Ptr &Ptr, const std::string & Node = RootUUID_ );
|
void ImportVenues(const Poco::JSON::Object::Ptr &Ptr, const std::string & Node = RootUUID_ );
|
||||||
bool CreateShortCut( ProvObjects::Entity & E);
|
bool CreateShortCut( ProvObjects::Entity & E);
|
||||||
|
bool GetByIP(const std::string &IP, std::string & uuid);
|
||||||
private:
|
private:
|
||||||
bool RootExists_=false;
|
bool RootExists_=false;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ namespace OpenWifi {
|
|||||||
Logger().information(Poco::format("Adding %s to inventory.",SerialNumber));
|
Logger().information(Poco::format("Adding %s to inventory.",SerialNumber));
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
std::cout << "Could not add " << SerialNumber << " to DB." << std::endl;
|
Logger().information(Poco::format("Could not add %s to inventory.",SerialNumber));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ namespace OpenWifi {
|
|||||||
public:
|
public:
|
||||||
VenueDB( ORM::DBType T, Poco::Data::SessionPool & P, Poco::Logger &L);
|
VenueDB( ORM::DBType T, Poco::Data::SessionPool & P, Poco::Logger &L);
|
||||||
bool CreateShortCut(ProvObjects::Venue &V);
|
bool CreateShortCut(ProvObjects::Venue &V);
|
||||||
|
bool GetByIP(const std::string &IP, std::string & uuid);
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user