bug 7226: if private NIC doesn't have IP , throw execption, then adding host fails

This commit is contained in:
Anthony Xu 2010-11-18 17:01:39 -08:00
parent fc7d519c4b
commit 32e08a9cc7

View File

@ -4537,6 +4537,10 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
cmd.setPrivateIpAddress(pifr.IP);
cmd.setPrivateMacAddress(pifr.MAC);
cmd.setPrivateNetmask(pifr.netmask);
} else {
String msg = "Private network " + _privateNetworkName + " doesn't have IP address, please check the host network configuration";
s_logger.error(msg);
throw new CloudRuntimeException(msg);
}
pif = PIF.getByUuid(conn, _host.storagePif1);