GitHub user ustcweizhou opened a pull request: https://github.com/apache/cloudstack/pull/1209
CLOUDSTACK-9134: set device_id as the first device_id not in use instead of nic count when we restart vpc tiers, the old nics will be removed, and create a new nic. however, the device_id was set to the nic count, which may be already used. this commit get the first device_id not in use as the device_id of new nic. This issue also happen when we add multiple networks to a vm and remove them. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ustcweizhou/cloudstack free-deviceid Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/1209.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1209 ---- commit acfc19dc8285a07412ee0078fbc13d7319d5be8b Author: Wei Zhou <w.z...@tech.leaseweb.com> Date: 2015-12-10T12:26:02Z CLOUDSTACK-9134: set device_id as the first device_id not in use instead of nic count when we restart vpc tiers, the old nics will be removed, and create a new nic. however, the device_id was set to the nic count, which may be already used. this commit get the first device_id not in use as the device_id of new nic. This issue also happen when we add multiple networks to a vm and remove them. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---