EXPECT_EQ(pd_pool_->getLength(), prefix_opt->getLength());
// Check that the lease is really in the database
- l = checkLease(duid_, reply->getOption(D6O_IA_PD), prefix_opt);
+ l = checkPdLease(duid_, reply->getOption(D6O_IA_PD), prefix_opt);
ASSERT_TRUE(l);
break;
}
ASSERT_TRUE(subnet_->inPool(type, existing));
// Let's prepopulate the database
- Lease6Ptr lease(new Lease6(Lease::TYPE_NA, existing, duid_, iaid,
+ Lease6Ptr lease(new Lease6(type, existing, duid_, iaid,
501, 502, 503, 504, subnet_->getID(),
prefix_len));
ASSERT_TRUE(LeaseMgrFactory::instance().addLease(lease));