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

Use set to avoid the duplicate vifs when searching by owner_vm_id #204

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

heypnus
Copy link
Contributor

@heypnus heypnus commented Oct 10, 2022

In some corner case, according to the response of vif search API, there can be 2 vifs for the same VM, which including the same lport_attachment_id and MAC. To avoid store the same attachent id in the variable attachment_ids, we change the var type from list to set.

In some corner case, according to the response of vif search API,
there can be 2 vifs for the same VM, which including the same
lport_attachment_id and MAC. To avoid store the same attachent id in
the variable attachment_ids, we change the var type from list to set.
@heypnus heypnus force-pushed the fix/multi-vifs-with-same-attach branch from 8278f63 to 2cca823 Compare October 10, 2022 10:32
@timdengyun
Copy link
Contributor

In some corner case, according to the response of vif search API, there can be 2 vifs for the same VM, which including the same lport_attachment_id and MAC. To avoid store the same attachent id in the variable attachment_ids, we change the var type from list to set.

which including the same lport_attachment_id and MAC -> "which includes the same lport_attachment_id and MAC", is it better?

@heypnus heypnus merged commit f84e8fe into vmware:master Oct 12, 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.

None yet

3 participants