18 AdaptorSubnet::AdaptorSubnet() {
21 AdaptorSubnet::~AdaptorSubnet() {
28 set.insert(static_cast<SubnetID>(id->intValue()));
39 while (set.count(next) > 0) {
42 subnet->set(
"id", Element::create(static_cast<long long>(next)));
58 subnet->remove(
"relay");
61 ElementPtr addr = Element::create(address->stringValue());
65 updated->set(
"ip-addresses", addrs);
66 subnet->set(
"relay", updated);
67 }
else if (addresses->size() == 0) {
68 subnet->remove(
"relay");
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::set< isc::dhcp::SubnetID > SubnetIDSet
Set of SubnetIDs.
uint32_t SubnetID
Unique identifier for a subnet (both v4 and v6)