Table "user_ipv6_address" (UserIpv6AddressVO) is empty and seems that it (#3571)

is not used; probably it is a legacy code/table.

Therefore, remove the verification that counts the IPs from
UserIpv6AddressVO in order to check if it can use the network for
deploying new VMs in UI [1].

[1] com.cloud.network.NetworkModelImpl.canUseForDeploy(Network).
This commit is contained in:
Gabriel Beims Bräscher 2019-08-28 15:25:29 -03:00 committed by Paul Angus
parent 653bee3ddf
commit 87c4350160

View File

@ -594,9 +594,6 @@ public class NetworkModelImpl extends ManagerBase implements NetworkModel, Confi
if (!hasFreeIps) { if (!hasFreeIps) {
return false; return false;
} }
if (network.getIp6Gateway() != null) {
hasFreeIps = areThereIPv6AddressAvailableInNetwork(network.getId());
}
} else { } else {
if (network.getCidr() == null) { if (network.getCidr() == null) {
s_logger.debug("Network - " + network.getId() + " has NULL CIDR."); s_logger.debug("Network - " + network.getId() + " has NULL CIDR.");