mirror of https://github.com/apache/cloudstack.git
CS-15542, return success when vif is not there on deipassoc
reviewed-by : kelven
This commit is contained in:
parent
fb20d5a9ca
commit
71bd6b41c6
|
|
@ -1495,7 +1495,12 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
|
||||
int ethDeviceNum = this.findRouterEthDeviceIndex(domrName, routerIp, ip.getVifMacAddress());
|
||||
if (ethDeviceNum < 0) {
|
||||
throw new InternalErrorException("Failed to find DomR VIF to associate/disassociate IP with.");
|
||||
if (ip.isAdd()) {
|
||||
throw new InternalErrorException("Failed to find DomR VIF to associate/disassociate IP with.");
|
||||
} else {
|
||||
s_logger.debug("VIF to deassociate IP with does not exist, return success");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
String args = "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue