You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/06/25 14:59:39 UTC
git commit: updated refs/heads/master to 018b471
Repository: cloudstack
Updated Branches:
refs/heads/master 867c894d2 -> 018b471ad
CLOUDSTACK-6747 test to allow all cidrs on other end of vpc, public or
private
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/018b471a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/018b471a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/018b471a
Branch: refs/heads/master
Commit: 018b471ad300ea0987e52d6b42dde71387de8c5b
Parents: 867c894
Author: Daan Hoogland <da...@onecht.net>
Authored: Wed Jun 25 14:59:14 2014 +0200
Committer: Daan Hoogland <da...@onecht.net>
Committed: Wed Jun 25 14:59:14 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/018b471a/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 e5e9e30..d881c89 100755
--- a/utils/src/com/cloud/utils/net/NetUtils.java
+++ b/utils/src/com/cloud/utils/net/NetUtils.java
@@ -1175,6 +1175,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)) {