/**
* Performs the Service update.
* @param ip IP Address to set.
- * @return 0 if all is fine, -1 otherwise.
+ * @return UpdateOk if all is fine, GenericError otherwise.
*/
-int ServiceZoneedit::perform_update(const std::string& ip)
+Service::UpdateErrorCode ServiceZoneedit::perform_update(const std::string& ip)
{
string url = BaseUrl;
url.append(ip);
if ( status_code == "200" )
{
- return 0;
+ return UpdateOk;
}
else
{
get_logger()->print_httphelper_not_initialized();
HTTPHelp->re_initialize();
}
- return -1;
+ return GenericError;
}