mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 22:15:23 +00:00
[5208a] delete methods implemented in host data sources
This commit is contained in:
@@ -251,6 +251,37 @@ public:
|
||||
/// violation
|
||||
virtual void add(const HostPtr& host);
|
||||
|
||||
/// @brief Attempts to delete a host by (subnet-id, address)
|
||||
///
|
||||
/// This method supports both v4 and v6.
|
||||
///
|
||||
/// @param subnet_id subnet identfier.
|
||||
/// @param addr specified address.
|
||||
/// @return true if deletion was successful, false otherwise.
|
||||
virtual bool del(const SubnetID& subnet_id, const asiolink::IOAddress& addr);
|
||||
|
||||
/// @brief Attempts to delete a host by (subnet4-id, identifier type, identifier)
|
||||
///
|
||||
/// This method supports v4 hosts only.
|
||||
///
|
||||
/// @param subnet_id subnet identfier.
|
||||
/// @param addr specified address.
|
||||
/// @return true if deletion was successful, false otherwise.
|
||||
virtual bool del4(const SubnetID& subnet_id,
|
||||
const Host::IdentifierType& identifier_type,
|
||||
const uint8_t* identifier_begin, const size_t identifier_len);
|
||||
|
||||
/// @brief Attempts to delete a host by (subnet6-id, identifier type, identifier)
|
||||
///
|
||||
/// This method supports v6 hosts only.
|
||||
///
|
||||
/// @param subnet_id subnet identfier.
|
||||
/// @param addr specified address.
|
||||
/// @return true if deletion was successful, false otherwise.
|
||||
virtual bool del6(const SubnetID& subnet_id,
|
||||
const Host::IdentifierType& identifier_type,
|
||||
const uint8_t* identifier_begin, const size_t identifier_len);
|
||||
|
||||
/// @brief Return backend type
|
||||
///
|
||||
/// Returns the type of database as the string "postgresql". This is
|
||||
|
Reference in New Issue
Block a user