String privateAssignedIp = null;
String publicAssignedIp = null;
for (int i = 0; i < nics.length; i++) {
final NIC nic = nics[i];
if (nic == null) {
logger.error("Invalid Manager implementation, " +
"missing NIC in NICS array");
continue; // *** GOTO NEXT VM ***
}
final String hostname = nic.getHostname();
if (hostname == null) {
logger.error("Invalid Manager implementation, " +
"missing hostname in NIC");
continue; // *** GOTO NEXT VM ***
}
final String ipAddress = nic.getIpAddress();
if (ipAddress == null) {
logger.error("Invalid Manager implementation, " +
"missing IP address in NIC");
continue; // *** GOTO NEXT VM ***
}
final String networkName = nic.getNetworkName();
if (this.networks.isPublicNetwork(networkName)) {
if (publicAssignedHostname != null) {
logger.warn("Can't understand real NICs from duplicate " +
"networks yet, treating second one as unknown NIC");
} else {