From 524e73c63e6282b6ced72299d4a4ea1c4e39be52 Mon Sep 17 00:00:00 2001 From: Anthony Xu Date: Fri, 16 Aug 2013 10:02:45 -0700 Subject: [PATCH] allow overlapped subnet in shared network --- .../com/cloud/configuration/ConfigurationManagerImpl.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java index c692e704e95..d32c693f372 100755 --- a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java +++ b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java @@ -3134,12 +3134,6 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati } } - if ( vlan.getNetworkId() != networkId) { - throw new InvalidParameterValueException("This subnet is overlapped with subnet in other network " + vlan.getNetworkId() - + " in zone " + zone.getName() - + " . Please specify a different gateway/netmask."); - - } String[] otherVlanIpRange = vlan.getIpRange().split("\\-"); String otherVlanStartIP = otherVlanIpRange[0]; String otherVlanEndIP = null;