mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1232: Only support cidr=64 in IPv6
This commit is contained in:
parent
696b4ed8ea
commit
6c37fccc0b
|
|
@ -1931,9 +1931,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