7#ifndef HA_LEASE_SYNC_FILTER_H
8#define HA_LEASE_SYNC_FILTER_H
15#include <unordered_set>
96 std::unordered_set<uint32_t> subnet_ids_;
Checks if a lease fetched from the other server should be synchronized into the local lease database.
void apply()
Applies filtering rules based on the current server configuration.
LeaseSyncFilter(const HAServerType &server_type, const HAConfigPtr &config)
Constructor.
bool shouldSync(const dhcp::LeasePtr &lease) const
Checks if the lease should be accepted or discarded.
boost::shared_ptr< Subnet > SubnetPtr
A generic pointer to either Subnet4 or Subnet6 object.
boost::shared_ptr< Lease > LeasePtr
Pointer to the lease object.
boost::shared_ptr< HAConfig > HAConfigPtr
Pointer to the High Availability configuration structure.
HAServerType
Lists possible server types for which HA service is created.
Defines the logger used by the top-level component of kea-lfc.