CLOUDSTACK-1232: Only support cidr=64 in IPv6

This commit is contained in:
Sheng Yang 2013-02-26 19:37:45 -08:00
parent 0e6290ba87
commit a76301bbbe
1 changed files with 3 additions and 3 deletions

View File

@ -1930,9 +1930,9 @@ public class NetworkModelImpl extends ManagerBase implements NetworkModel {
}
int cidrSize = NetUtils.getIp6CidrSize(ip6Cidr);
// Ipv6 cidr limit should be at least /64
if (cidrSize < 64) {
throw new InvalidParameterValueException("The cidr size of IPv6 network must be no less than 64 bits!");
// we only support cidr == 64
if (cidrSize != 64) {
throw new InvalidParameterValueException("The cidr size of IPv6 network must be 64 bits!");
}
}