add public ips to collection for vcloud

This commit is contained in:
Adrian Cole 2011-03-05 16:56:33 -05:00
parent fb663fceed
commit e3e0ad3e84
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,8 @@ public class VCloudComputeUtils {
for (NetworkConnection connection : vm.getNetworkConnectionSection().getConnections()) {
if (connection.getIpAddress() != null)
ips.add(connection.getIpAddress());
if (connection.getExternalIpAddress() != null)
ips.add(connection.getExternalIpAddress());
}
} else {
for (ResourceAllocation net : filter(vm.getVirtualHardwareSection().getResourceAllocations(),