mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 9655: removed restriction for Direct networks - now can create 2 networks with diff vlans and the same subnet
status 9655: resolved fixed
This commit is contained in:
parent
85af11fac9
commit
c66c3c5bf0
@ -3013,9 +3013,8 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
||||
}
|
||||
|
||||
private boolean allowIpRangeOverlap(VlanVO vlan, boolean forVirtualNetwork, long networkId) {
|
||||
Network vlanNetwork = _networkMgr.getNetwork(vlan.getNetworkId());
|
||||
Network network = _networkMgr.getNetwork(networkId);
|
||||
if (vlan.getVlanType() == VlanType.DirectAttached && !forVirtualNetwork && network.getAccountId() != vlanNetwork.getAccountId()) {
|
||||
//FIXME - delete restriction for virtual network in the future
|
||||
if (vlan.getVlanType() == VlanType.DirectAttached && !forVirtualNetwork) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user