mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 7226: if private NIC doesn't have IP , throw execption, then adding host fails
This commit is contained in:
parent
fc7d519c4b
commit
32e08a9cc7
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user