mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3206. CreateVlanIpRange fails with IndexOutOfBoundsException.
This commit is contained in:
parent
3bb4ec9f65
commit
55f0e167ec
|
|
@ -2685,8 +2685,8 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||
}
|
||||
|
||||
List<VlanVO> vlans = _vlanDao.listVlansByNetworkId(network.getId());
|
||||
VlanVO vlan = vlans.get(0);
|
||||
if (vlans != null && vlans.size() > 0) {
|
||||
VlanVO vlan = vlans.get(0);
|
||||
if (vlanId == null) {
|
||||
vlanId = vlan.getVlanTag();
|
||||
} else if (!vlan.getVlanTag().equals(vlanId)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue