mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1232: Only support cidr=64 in IPv6
This commit is contained in:
parent
0e6290ba87
commit
a76301bbbe
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue