mirror of https://github.com/apache/cloudstack.git
Destroy unplugged VIFs before creating a VIF for a VM, and reuse the device id
This commit is contained in:
parent
afd48819a6
commit
54d7e8dcd3
|
|
@ -3928,7 +3928,6 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||
s_logger.debug("Found unplugged VIF " + deviceId + " in VM " + vmName + " destroy it");
|
||||
vif.destroy(conn);
|
||||
}
|
||||
usedDeviceNums.add(Integer.valueOf(vif.getDevice(conn)));
|
||||
} catch (NumberFormatException e) {
|
||||
String msg = "Obtained an invalid value for an allocated VIF device number for VM: " + vmName;
|
||||
s_logger.debug(msg, e);
|
||||
|
|
|
|||
Loading…
Reference in New Issue