Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #272 - New NIC ID decrements from initial random int to avoid collisions #275

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

phess
Copy link
Contributor

@phess phess commented Jun 14, 2022

After some discussion at #273 (merged), the code to generate a new NIC ID will now generate a new random base ID once for each new VM, deriving new NIC IDs from this base by decrementing it for each new NIC.

E.g. for a new VM the new random base ID may be -26789.
The first NIC will have NIC ID=-26790.
Second NIC will have NIC ID=-26791.
...and so on.

@Ron-Lavi
Copy link

@chris1984 Hi, any chance that you could take a look at this one?

@chris1984
Copy link
Collaborator

@Ron-Lavi yeah I will take a look today.

@chris1984 chris1984 self-assigned this Jun 29, 2022
Copy link
Collaborator

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, works well. Tested clone and no regressions on vSphere 6/7

@chris1984 chris1984 merged commit b2aed55 into fog:master Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants