mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Allow EIP/ELB network creation only in Basic zone
This commit is contained in:
parent
2b1feadb20
commit
9ec89b9240
@ -2553,6 +2553,11 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||||||
throw new InvalidParameterValueException("Only Account specific Isolated network with sourceNat service disabled are allowed in security group enabled zone");
|
throw new InvalidParameterValueException("Only Account specific Isolated network with sourceNat service disabled are allowed in security group enabled zone");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//don't allow eip/elb networks in Advance zone
|
||||||
|
if (ntwkOff.getElasticIp() || ntwkOff.getElasticLb()) {
|
||||||
|
throw new InvalidParameterValueException("Elastic IP and Elastic LB services are supported in zone of type " + NetworkType.Basic);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// VlanId can be specified only when network offering supports it
|
// VlanId can be specified only when network offering supports it
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user