summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/config_backend_pool_dhcp4.h
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2018-10-04 20:20:17 +0200
committerMarcin Siodelski <marcin@isc.org>2018-10-08 16:39:22 +0200
commit502a4daa0f856fbb47a4c1018287ade0a44a11ec (patch)
tree30d2552c41955e1931c9c1cb9949327e855df454 /src/lib/dhcpsrv/config_backend_pool_dhcp4.h
parent[#93,!35] Check for binding errors in the MySqlConnection class. (diff)
downloadkea-502a4daa0f856fbb47a4c1018287ade0a44a11ec.tar.xz
kea-502a4daa0f856fbb47a4c1018287ade0a44a11ec.zip
[#93,!35] Config Backend API returns number of deleted entries.
Diffstat (limited to 'src/lib/dhcpsrv/config_backend_pool_dhcp4.h')
-rw-r--r--src/lib/dhcpsrv/config_backend_pool_dhcp4.h36
1 files changed, 24 insertions, 12 deletions
diff --git a/src/lib/dhcpsrv/config_backend_pool_dhcp4.h b/src/lib/dhcpsrv/config_backend_pool_dhcp4.h
index 271e5cc462..3ac592dfeb 100644
--- a/src/lib/dhcpsrv/config_backend_pool_dhcp4.h
+++ b/src/lib/dhcpsrv/config_backend_pool_dhcp4.h
@@ -263,7 +263,8 @@ public:
/// @param backend_selector Backend selector.
/// @param server_selector Server selector.
/// @param subnet_prefix Prefix of the subnet to be deleted.
- virtual void
+ /// @return Number of deleted subnets.
+ virtual uint64_t
deleteSubnet4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector,
const std::string& subnet_prefix);
@@ -273,7 +274,8 @@ public:
/// @param backend_selector Backend selector.
/// @param server_selector Server selector.
/// @param subnet_id Identifier of the subnet to be deleted.
- virtual void
+ /// @return Number of deleted subnets.
+ virtual uint64_t
deleteSubnet4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector,
const SubnetID& subnet_id);
@@ -282,7 +284,8 @@ public:
///
/// @param backend_selector Backend selector.
/// @param server_selector Server selector.
- virtual void
+ /// @return Number of deleted subnets.
+ virtual uint64_t
deleteAllSubnets4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector);
@@ -291,7 +294,8 @@ public:
/// @param backend_selector Backend selector.
/// @param server_selector Server selector.
/// @param name Name of the shared network to be deleted.
- virtual void
+ /// @return Number of deleted shared networks.
+ virtual uint64_t
deleteSharedNetwork4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector,
const std::string& name);
@@ -300,7 +304,8 @@ public:
///
/// @param backend_selector Backend selector.
/// @param server_selector Server selector.
- virtual void
+ /// @return Number of deleted shared networks.
+ virtual uint64_t
deleteAllSharedNetworks4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector);
@@ -310,7 +315,8 @@ public:
/// @param server_selector Server selector.
/// @param code Code of the option to be deleted.
/// @param space Option space of the option to be deleted.
- virtual void
+ /// @return Number of deleted option definitions.
+ virtual uint64_t
deleteOptionDef4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector,
const uint16_t code,
@@ -320,7 +326,8 @@ public:
///
/// @param backend_selector Backend selector.
/// @param server_selector Server selector.
- virtual void
+ /// @return Number of deleted option definitions.
+ virtual uint64_t
deleteAllOptionDefs4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector);
@@ -330,7 +337,8 @@ public:
/// @param server_selector Server selector.
/// @param code Code of the option to be deleted.
/// @param space Option space of the option to be deleted.
- virtual void
+ /// @return Number of deleted options.
+ virtual uint64_t
deleteOption4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector,
const uint16_t code,
@@ -344,7 +352,8 @@ public:
/// belongs.
/// @param code Code of the deleted option.
/// @param space Option space of the deleted option.
- virtual void
+ /// @return Number of deleted options.
+ virtual uint64_t
deleteOption4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector,
const SubnetID& subnet_id,
@@ -360,7 +369,8 @@ public:
/// deleted option belongs.
/// @param code Code of the deleted option.
/// @param space Option space of the deleted option.
- virtual void
+ /// @return Number of deleted options.
+ virtual uint64_t
deleteOption4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector,
const asiolink::IOAddress& pool_start_address,
@@ -373,7 +383,8 @@ public:
/// @param backend_selector Backend selector.
/// @param server_selector Server selector.
/// @param name Name of the global parameter to be deleted.
- virtual void
+ /// @return Number of deleted global parameters.
+ virtual uint64_t
deleteGlobalParameter4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector,
const std::string& name);
@@ -382,7 +393,8 @@ public:
///
/// @param backend_selector Backend selector.
/// @param server_selector Server selector.
- virtual void
+ /// @return Number of deleted global parameters.
+ virtual uint64_t
deleteAllGlobalParameters4(const db::BackendSelector& backend_selector,
const db::ServerSelector& server_selector);
};