CLOUDSTACK-9016 Fail to create VM instance within VPC

This commit is contained in:
Bharat Kumar 2015-10-07 16:35:28 +05:30
parent acce645119
commit 475fc38481
1 changed files with 1 additions and 5 deletions

View File

@ -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());