"prefix-len": 48,
"delegated-len": 64,
"excluded-prefix": "2001:db8:abcd:1234::",
- "excluded-prefix-len": 62,
+ "excluded-prefix-len": 72,
// Another user-context for this PD pool. Again, you can put
// anything you want in there as long as it's valid JSON and
"excluded-prefix": "2001:db8::",
// Excluded prefix (length) from client assignments.
- "excluded-prefix-len": 48,
+ "excluded-prefix-len": 72,
// Prefix pool level list of DHCP options.
"option-data": [],
"excluded-prefix": "2001:db8::",
// Excluded prefix (length) from client assignments.
- "excluded-prefix-len": 48,
+ "excluded-prefix-len": 72,
// Prefix pool level list of DHCP options.
"option-data": [],
<< static_cast<int>(excluded_prefix_length_));
}
- // Excluded prefix must be longer than the delegated prefix.
+ // Excluded prefix must be longer than or equal to the delegated prefix.
if (excluded_prefix_length_ <= delegated_prefix_length) {
isc_throw(BadValue, "length of the excluded prefix "
<< excluded_prefix << "/"
// excluded_prefix_len == 0 means there's no excluded prefix at all.
if (excluded_prefix_len && (excluded_prefix_len < delegated_len)) {
- isc_throw(BadValue, "Excluded prefix (" << static_cast<int>(excluded_prefix_len)
- << ") must be longer than the delegated prefix length ("
- << static_cast<int>(delegated_len));
+ isc_throw(BadValue, "Excluded prefix ("
+ << static_cast<int>(excluded_prefix_len)
+ << ") must be longer than or equal to the delegated prefix length ("
+ << static_cast<int>(delegated_len) << ")");
}
/// @todo: We should probably implement checks against weird addresses