Skip to content

Commit

Permalink
Table "user_ipv6_address" (UserIpv6AddressVO) is empty and seems that…
Browse files Browse the repository at this point in the history
… 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).
  • Loading branch information
Gabriel Beims Bräscher authored and Paul Angus committed Aug 28, 2019
1 parent 653bee3 commit 87c4350
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/src/main/java/com/cloud/network/NetworkModelImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,6 @@ public boolean canUseForDeploy(Network network) {
if (!hasFreeIps) {
return false;
}
if (network.getIp6Gateway() != null) {
hasFreeIps = areThereIPv6AddressAvailableInNetwork(network.getId());
}
} else {
if (network.getCidr() == null) {
s_logger.debug("Network - " + network.getId() + " has NULL CIDR.");
Expand Down

0 comments on commit 87c4350

Please sign in to comment.