if (pool) {
StatsMgr::instance().addValue(
StatsMgr::generateName("subnet", subnet->getID(),
- StatsMgr::generateName(ctx.currentIA().type_ == Lease::TYPE_NA ? "pool" : "pd-pool", pool->getID(),
- ctx.currentIA().type_ == Lease::TYPE_NA ? "assigned-nas" : "assigned-pds")),
+ StatsMgr::generateName(ctx.currentIA().type_ == Lease::TYPE_NA ?
+ "pool" : "pd-pool", pool->getID(),
+ ctx.currentIA().type_ == Lease::TYPE_NA ?
+ "assigned-nas" : "assigned-pds")),
static_cast<int64_t>(-1));
}
}
if (pool) {
StatsMgr::instance().addValue(
StatsMgr::generateName("subnet", subnet->getID(),
- StatsMgr::generateName(candidate->type_ == Lease::TYPE_NA ? "pool" : "pd-pool", pool->getID(),
- candidate->type_ == Lease::TYPE_NA ? "assigned-nas" : "assigned-pds")),
+ StatsMgr::generateName(candidate->type_ == Lease::TYPE_NA ?
+ "pool" : "pd-pool", pool->getID(),
+ candidate->type_ == Lease::TYPE_NA ?
+ "assigned-nas" : "assigned-pds")),
static_cast<int64_t>(-1));
}
}
if (pool) {
StatsMgr::instance().addValue(
StatsMgr::generateName("subnet", subnet->getID(),
- StatsMgr::generateName(ctx.currentIA().type_ == Lease::TYPE_NA ? "pool" : "pd-pool", pool->getID(),
- ctx.currentIA().type_ == Lease::TYPE_NA ? "assigned-nas" : "assigned-pds")),
+ StatsMgr::generateName(ctx.currentIA().type_ == Lease::TYPE_NA ?
+ "pool" : "pd-pool", pool->getID(),
+ ctx.currentIA().type_ == Lease::TYPE_NA ?
+ "assigned-nas" : "assigned-pds")),
static_cast<int64_t>(-1));
}
}
if (pool) {
StatsMgr::instance().addValue(
StatsMgr::generateName("subnet", subnet->getID(),
- StatsMgr::generateName(lease->type_ == Lease::TYPE_NA ? "pool" : "pd-pool",
+ StatsMgr::generateName(lease->type_ == Lease::TYPE_NA ?
+ "pool" : "pd-pool",
pool->getID(), "reclaimed-leases")),
static_cast<int64_t>(1));
}
} else if (lease->type_ == Lease::TYPE_NA || lease->type_ == Lease::TYPE_PD) {
StatsMgr::instance().addValue(StatsMgr::generateName("subnet",
lease->subnet_id_,
- lease->type_ == Lease::TYPE_NA ? "assigned-nas" : "assigned-pds"),
+ lease->type_ == Lease::TYPE_NA ?
+ "assigned-nas" : "assigned-pds"),
static_cast<int64_t>(-1));
if (subnet) {
if (pool) {
StatsMgr::instance().addValue(
StatsMgr::generateName("subnet", subnet->getID(),
- StatsMgr::generateName(lease->type_ == Lease::TYPE_NA ? "pool" : "pd-pool", pool->getID(),
- lease->type_ == Lease::TYPE_NA ? "assigned-nas" : "assigned-pds")),
+ StatsMgr::generateName(lease->type_ == Lease::TYPE_NA ?
+ "pool" : "pd-pool", pool->getID(),
+ lease->type_ == Lease::TYPE_NA ?
+ "assigned-nas" : "assigned-pds")),
static_cast<int64_t>(-1));
}
}