pools1[0]->toText());
EXPECT_EQ("type=V4, 192.0.2.200-192.0.2.255",
pools1[1]->toText());
- // There shouldn't be any TA or PD pools
- EXPECT_THROW((*subnet)->getPools(Lease::TYPE_TA), BadValue);
+ // There shouldn't be any PD pools
EXPECT_THROW((*subnet)->getPools(Lease::TYPE_PD), BadValue);
// Check the second subnet
pools2[0]->toText());
EXPECT_EQ("type=V4, 192.0.3.128-192.0.3.255",
pools2[1]->toText());
- // There shouldn't be any TA or PD pools
- EXPECT_THROW((*subnet)->getPools(Lease::TYPE_TA), BadValue);
+ // There shouldn't be any PD pools
EXPECT_THROW((*subnet)->getPools(Lease::TYPE_PD), BadValue);
}
type = Lease::TYPE_NA;
break;
- case Lease::TYPE_TA:
- type = Lease::TYPE_TA;
- break;
-
case Lease::TYPE_PD:
type = Lease::TYPE_PD;
break;
getColumnValue(r, row, col, raw_value);
switch (raw_value) {
case Lease6::TYPE_NA:
- case Lease6::TYPE_TA:
case Lease6::TYPE_PD:
value = static_cast<Lease6::Type>(raw_value);
break;
checkIA(D6O_IA_PD);
}
-// Check that this class cannot be used for IA_TA (IA_TA has no T1, T2 fields
-// and people tend to think that if it's good for IA_NA and IA_PD, it can
-// be used for IA_TA as well and that is not true)
-TEST_F(Option6IATest, taForbidden) {
- EXPECT_THROW(Option6IA(D6O_IA_TA, buf_.begin(), buf_.begin() + 50),
- BadValue);
-
- EXPECT_THROW(Option6IA(D6O_IA_TA, 123), BadValue);
-}
-
// Check that getters/setters are working as expected.
TEST_F(Option6IATest, simple) {
scoped_ptr<Option6IA> ia(new Option6IA(D6O_IA_NA, 1234));