You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/12/17 10:54:07 UTC

[GitHub] [cloudstack] DaanHoogland commented on a change in pull request #5786: network: ipv6 static routes

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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org