if (prefix_len != 128) {
IOAddress first_address = firstAddrInPrefix(addr, prefix_len);
if (first_address != addr) {
- isc_throw(BadValue, "Invalid Pool6 address boundaries: " << addr
- << " is not the first address in prefix: " << first_address
+ isc_throw(BadValue, "Prefix address: " << addr
+ << " exceeds prefix/prefix-len pair: " << first_address
<< "/" << static_cast<uint32_t>(prefix_len));
}
}
" \"iaid\": 1234\n"
" }\n"
"}";
- exp_rsp = "Invalid Pool6 address boundaries: 2001:db8:1::1 is not the first address in prefix: 2001:db8:1::/48";
+ exp_rsp = "Prefix address: 2001:db8:1::1 exceeds prefix/prefix-len pair: 2001:db8:1::/48";
testCommand(txt, CONTROL_RESULT_ERROR, exp_rsp);
}
" \"iaid\": 1234\n"
" }\n"
"}";
- exp_rsp = "Invalid Pool6 address boundaries: 2001:db8:1::1 is not the first address in prefix: 2001:db8:1::/48";
+ exp_rsp = "Prefix address: 2001:db8:1::1 exceeds prefix/prefix-len pair: 2001:db8:1::/48";
testCommand(txt, CONTROL_RESULT_ERROR, exp_rsp);
}
" ]"
" }"
"}";
- exp_rsp = "Invalid Pool6 address boundaries: 2001:db8:1::123 is not the first address in prefix: 2001:db8:1::/48";
+ exp_rsp = "Prefix address: 2001:db8:1::123 exceeds prefix/prefix-len pair: 2001:db8:1::/48";
testCommand(cmd, CONTROL_RESULT_ERROR, exp_rsp);
// Check that the lease was not inserted.
" ]"
" }"
"}";
- exp_rsp = "Invalid Pool6 address boundaries: 2001:db8:1234:ab:: is not the first address in prefix: 2001:db8:1234::/56";
+ exp_rsp = "Prefix address: 2001:db8:1234:ab:: exceeds prefix/prefix-len pair: 2001:db8:1234::/56";
testCommand(cmd, CONTROL_RESULT_ERROR, exp_rsp);
// Check that the lease we inserted is stored.
IOAddress addr(prefix);
IOAddress first_address = firstAddrInPrefix(addr, prefix_len);
if (first_address != addr) {
- isc_throw(BadValue, "Invalid lease address boundaries: " << addr
- << " is not the first address in prefix: " << first_address
+ isc_throw(BadValue, "Prefix address: " << addr
+ << " exceeds prefix/prefix-len pair: " << first_address
<< "/" << static_cast<uint32_t>(prefix_len));
}
}