mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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.