mirror of https://github.com/apache/cloudstack.git
bug 6133: incremental checkin
This commit is contained in:
parent
0b5178573a
commit
2f3a43ddda
|
|
@ -934,10 +934,17 @@ public class ConfigurationManagerImpl implements ConfigurationManager {
|
|||
if (!(accountId == null && podId == null) && false) {
|
||||
throw new InvalidParameterValueException("VLANs for the virtual network must be zone-wide.");
|
||||
}
|
||||
} else if (vlanType.equals(VlanType.DirectAttached)) {
|
||||
if (!((accountId != null && podId == null) || (accountId == null && podId != null))) {
|
||||
throw new InvalidParameterValueException("Direct Attached VLANs must either be pod-wide, or for one account.");
|
||||
}
|
||||
}
|
||||
else if (vlanType.equals(VlanType.DirectAttached))
|
||||
{
|
||||
// if (!((accountId != null && podId == null) || (accountId == null && podId != null))) {
|
||||
// throw new InvalidParameterValueException("Direct Attached VLANs must either be pod-wide, or for one account.");
|
||||
// }
|
||||
|
||||
if (accountId!=null && podId!=null)
|
||||
{
|
||||
throw new InvalidParameterValueException("Direct Attached VLANs must either be pod-wide,for one account or zone wide");
|
||||
}
|
||||
|
||||
if (accountId != null) {
|
||||
// VLANs for an account must be tagged
|
||||
|
|
|
|||
Loading…
Reference in New Issue