cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [1/3] git commit: updated refs/heads/4.3 to 8d0f49a
Date Wed, 25 Jun 2014 15:17:09 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.3 59353846e -> 8d0f49add


CLOUDSTACK-6747 test to allow all cidrs on other end of vpc, public or
private
(cherry picked from commit 018b471ad300ea0987e52d6b42dde71387de8c5b)


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

Branch: refs/heads/4.3
Commit: c05a007536af3e8ad628f77beda88b2d99129c4e
Parents: 5935384
Author: Daan Hoogland <daan@onecht.net>
Authored: Wed Jun 25 14:59:14 2014 +0200
Committer: Daan Hoogland <daan@onecht.net>
Committed: Wed Jun 25 16:58:10 2014 +0200

----------------------------------------------------------------------
 utils/src/com/cloud/utils/net/NetUtils.java | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c05a0075/utils/src/com/cloud/utils/net/NetUtils.java
----------------------------------------------------------------------
diff --git a/utils/src/com/cloud/utils/net/NetUtils.java b/utils/src/com/cloud/utils/net/NetUtils.java
index 792d606..1c94b71 100755
--- a/utils/src/com/cloud/utils/net/NetUtils.java
+++ b/utils/src/com/cloud/utils/net/NetUtils.java
@@ -1186,6 +1186,15 @@ public class NetUtils {
         return true;
     }
 
+    public static boolean isValidCidrList(String cidrList) {
+        for (String guestCidr : cidrList.split(",")) {
+            if (!isValidCIDR(guestCidr)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
     public static boolean validateGuestCidrList(String guestCidrList) {
         for (String guestCidr : guestCidrList.split(",")) {
             if (!validateGuestCidr(guestCidr)) {


Mime
View raw message