cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [7/50] [abbrv] git commit: refs/heads/affinity_groups - CLOUDSTACK-1232: Only support cidr=64 in IPv6
Date Thu, 14 Mar 2013 22:35:17 GMT
CLOUDSTACK-1232: Only support cidr=64 in IPv6


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0dca6d0e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0dca6d0e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0dca6d0e

Branch: refs/heads/affinity_groups
Commit: 0dca6d0e79196afe1a7dc641edc9d46f57ab2553
Parents: 9fc8bde
Author: Sheng Yang <sheng.yang@citrix.com>
Authored: Tue Feb 26 19:37:45 2013 -0800
Committer: Prachi Damle <prachi@cloud.com>
Committed: Thu Mar 14 15:12:13 2013 -0700

----------------------------------------------------------------------
 server/src/com/cloud/network/NetworkModelImpl.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0dca6d0e/server/src/com/cloud/network/NetworkModelImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/NetworkModelImpl.java b/server/src/com/cloud/network/NetworkModelImpl.java
index 7b3717a..f978ac5 100644
--- a/server/src/com/cloud/network/NetworkModelImpl.java
+++ b/server/src/com/cloud/network/NetworkModelImpl.java
@@ -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!");
         }
     }
 


Mime
View raw message