mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9016 Fail to create VM instance within VPC
This commit is contained in:
parent
acce645119
commit
475fc38481
|
|
@ -1684,11 +1684,7 @@ public class IpAddressManagerImpl extends ManagerBase implements IpAddressManage
|
|||
return requestedIp;
|
||||
}
|
||||
|
||||
String result;
|
||||
do {
|
||||
result = NetUtils.long2Ip(array[_rand.nextInt(array.length)]);
|
||||
} while (result.split("\\.")[3].equals("1"));
|
||||
return result;
|
||||
return NetUtils.long2Ip(array[_rand.nextInt(array.length)]);
|
||||
}
|
||||
|
||||
Random _rand = new Random(System.currentTimeMillis());
|
||||
|
|
|
|||
Loading…
Reference in New Issue