22        auto optional = pool_->getDdnsUpdateOnRenew();
 
   23        if (!optional.unspecified()) {
 
   24            return (optional.get());
 
   28    return (subnet_->getDdnsUpdateOnRenew().get());
 
 
   34        return (
"check-with-dhcid");
 
   38        auto optional = pool_->getDdnsConflictResolutionMode();
 
   39        if (!optional.unspecified()) {
 
   40            return (optional.get());
 
   44    return (subnet_->getDdnsConflictResolutionMode().get());
 
 
   55        auto optional = pool_->getDdnsTtlPercent();
 
   56        if (!optional.unspecified()) {
 
   57            return (optional.get());
 
   61    return (subnet_->getDdnsTtlPercent());
 
 
   71        auto optional = pool_->getDdnsTtl();
 
   72        if (!optional.unspecified()) {
 
   73            return (optional.get());
 
   77    return (subnet_->getDdnsTtl());
 
 
   87        auto optional = pool_->getDdnsTtlMin();
 
   88        if (!optional.unspecified()) {
 
   89            return (optional.get());
 
   93    return (subnet_->getDdnsTtlMin());
 
 
  103        auto optional = pool_->getDdnsTtlMax();
 
  104        if (!optional.unspecified()) {
 
  105            return (optional.get());
 
  109    return (subnet_->getDdnsTtlMax());
 
 
  117                  "DdnsParams::setPoolFromAddress called without a subnet");
 
 
A generic exception that is thrown if a function is called in a prohibited way.
The IOAddress class represents an IP addresses (version agnostic)
bool isV4() const
Convenience function to check for an IPv4 address.
util::Optional< double > getTtlPercent() const
Returns percent of lease lifetime to use for TTL.
util::Optional< uint32_t > getTtl() const
Returns explicit TTL to use.
std::string getConflictResolutionMode() const
Returns the DDNS config resolution mode for kea-dhcp-ddns.
bool getUpdateOnRenew() const
Returns whether or not DNS should be updated when leases renew.
util::Optional< uint32_t > getTtlMax() const
Returns the maximum TTL to use.
PoolPtr setPoolFromAddress(const asiolink::IOAddress &address)
Sets the pool based on the current subnet and given address.
util::Optional< uint32_t > getTtlMin() const
Returns the minimum TTL to use.
A template representing an optional value.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< Pool > PoolPtr
a pointer to either IPv4 or IPv6 Pool
Defines the logger used by the top-level component of kea-lfc.
@ TYPE_NA
the lease contains non-temporary IPv6 address