Skip to content

Commit 6c37fcc

Browse files
author
Sheng Yang
committed
CLOUDSTACK-1232: Only support cidr=64 in IPv6
1 parent 696b4ed commit 6c37fcc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎server/src/com/cloud/network/NetworkModelImpl.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,9 +1931,9 @@ public void checkIp6Parameters(String startIPv6, String endIPv6,
19311931
}
19321932

19331933
int cidrSize = NetUtils.getIp6CidrSize(ip6Cidr);
1934-
// Ipv6 cidr limit should be at least /64
1935-
if (cidrSize < 64) {
1936-
throw new InvalidParameterValueException("The cidr size of IPv6 network must be no less than 64 bits!");
1934+
// we only support cidr == 64
1935+
if (cidrSize != 64) {
1936+
throw new InvalidParameterValueException("The cidr size of IPv6 network must be 64 bits!");
19371937
}
19381938
}
19391939

0 commit comments

Comments
 (0)