DaanHoogland commented on a change in pull request #5786:
URL: https://github.com/apache/cloudstack/pull/5786#discussion_r771301719
##########
File path:
server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
##########
@@ -1765,8 +1765,8 @@ public DataCenterGuestIpv6Prefix
createDataCenterGuestIpv6Prefix(final CreateGue
}
final String prefix = cmd.getPrefix();
IPv6Network prefixNet = IPv6Network.fromString(prefix);
- if (prefixNet.getNetmask().asPrefixLength() < 64) {
- throw new InvalidParameterValueException("IPv6 prefix must be /64
or higher");
+ if (prefixNet.getNetmask().asPrefixLength() > 64) {
+ throw new InvalidParameterValueException("IPv6 prefix must be /64
or lesser");
Review comment:
```suggestion
throw new InvalidParameterValueException("IPv6 prefix must be
/64 or less");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]