Destroy unplugged VIFs before creating a VIF for a VM, and reuse the device id

This commit is contained in:
Anthony Xu 2014-06-27 14:52:13 -07:00
parent afd48819a6
commit 54d7e8dcd3
1 changed files with 0 additions and 1 deletions

View File

@ -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);