// if (!Strings.isNullOrEmpty(ip)) {
// tags.add(new Tag(Tag.NETWORK_ADDRESS, ip));
// }
// }
Addresses addresses = server.getAddresses();
for (Network network : addresses.getNetworks()) {
if ("public".equals(network.getId())) {
for (Ip ip : network.getIps()) {
if (Strings.isNullOrEmpty(ip.getAddr())) {
continue;
}
ips.add(ip);
}
}
}
CloudBehaviours behaviours = new CloudBehaviours(cloud);
if (behaviours.publicIpsReportedAsPrivate()) {
for (Network network : addresses.getNetworks()) {
if ("private".equals(network.getId())) {
for (Ip ip : network.getIps()) {
if (Strings.isNullOrEmpty(ip.getAddr())) {
continue;
}