ComputeResourceResource computeHostResource)
throws AppCatalogException {
Set<String> ipAddresses = description.getIpAddresses();
if (ipAddresses != null && !ipAddresses.isEmpty()) {
for (String ipAddress : ipAddresses) {
HostIPAddressResource ipAddressResource = new HostIPAddressResource();
ipAddressResource.setComputeHostResource(computeHostResource);
ipAddressResource.setResourceID(computeHostResource.getResourceId());
ipAddressResource.setIpaddress(ipAddress);
ipAddressResource.save();
}
}
}