lease->type_ == Lease::TYPE_NA ?
"assigned-nas" : "assigned-pds"),
int64_t(1));
- // @node current code does not check for declined PD
- // code must be updated in parser (see @todo in lease_parser.cc)
if (lease->stateDeclined()) {
StatsMgr::instance().addValue("declined-addresses", int64_t(1));
"assigned-nas" : "assigned-pds"),
int64_t(-1));
}
- // @node current code does not check for declined PD
- // code must be updated in parser (see @todo in lease_parser.cc)
if (existing->stateDeclined()) {
// old lease is declined
StatsMgr::instance().addValue("declined-addresses", int64_t(-1));
"assigned-nas" : "assigned-pds"),
int64_t(1));
}
- // @node current code does not check for declined PD
- // code must be updated in parser (see @todo in lease_parser.cc)
if (lease->stateDeclined()) {
// new lease is declined
StatsMgr::instance().addValue("declined-addresses", int64_t(1));
lease->type_ == Lease::TYPE_NA ?
"assigned-nas" : "assigned-pds"),
int64_t(1));
- // @node current code does not check for declined PD
- // code must be updated in parser (see @todo in lease_parser.cc)
if (lease->stateDeclined()) {
// new lease is declined
StatsMgr::instance().addValue("declined-addresses", int64_t(1));
lease->type_ == Lease::TYPE_NA ?
"assigned-nas" : "assigned-pds"),
int64_t(-1));
- // @node current code does not check for declined PD
- // code must be updated in parser (see @todo in lease_parser.cc)
if (lease->stateDeclined()) {
StatsMgr::instance().addValue("declined-addresses", int64_t(-1));
"values are: 0 (default), 1 (declined) and 2 (expired-reclaimed)");
}
- /// @todo throw if PD address is in declined state
- /*
- if (state == Lease::STATE_DECLINED && type == Lease::TYPE_PD) {
- isc_throw(isc::InvalidOperation,
- "invalid PD address in declined state");
- }
- */
-
// Handle user context.
ConstElementPtr ctx = lease_info->get("user-context");
if (ctx && (ctx->getType() != Element::map)) {