Skip to content

Commit 54d7e8d

Browse files
author
Anthony Xu
committed
Destroy unplugged VIFs before creating a VIF for a VM, and reuse the device id
1 parent afd4881 commit 54d7e8d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3928,7 +3928,6 @@ protected String getLowestAvailableVIFDeviceNum(Connection conn, VM vm) {
39283928
s_logger.debug("Found unplugged VIF " + deviceId + " in VM " + vmName + " destroy it");
39293929
vif.destroy(conn);
39303930
}
3931-
usedDeviceNums.add(Integer.valueOf(vif.getDevice(conn)));
39323931
} catch (NumberFormatException e) {
39333932
String msg = "Obtained an invalid value for an allocated VIF device number for VM: " + vmName;
39343933
s_logger.debug(msg, e);

0 commit comments

Comments
 (0)