-
Notifications
You must be signed in to change notification settings - Fork 898
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
Changing the key of network device to be both ipv4 + ipv6 #16619
Conversation
@pkliczewski @Ladas please review. This is needed for the regular (non graph) refresh. |
@AlonaKaplan can you verify this doesn't break Vmware/Rhev providers specs? (you will need to run them locally) |
The change looks good, please make sure that there are no regressions as @Ladas suggested. |
Both vmware and ovirt specs pass. oVirt was also verified manually (web ui). |
A network device may not have ipv4 addresses at all, using ipv4 as the sole key is not enough.
Checked commit AlonaKaplan@3ec67f4 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM great change @AlonaKaplan !
Shouldn't this be either, not both? |
@chargio we store both ipv4 and ipv6 addresses in the network record for a guest device, see https://github.com/ManageIQ/manageiq-providers-vmware/blob/master/app/models/manageiq/providers/vmware/infra_manager/refresh_parser.rb#L1131-L1147 |
@agrare I was concerned that the identification is for all of them. A server with an IPv4 address and a server with the IPv6 address are the same, even if one of them is not working. There are differnt endpoints for the same server. |
Sorry @chargio you lost me :D A NIC can have multiple ip addresses, can be more than one ipv4 address, a mix of ipv4 and ipv6 addresses, etc... |
@miq-bot add_label gaprindashvili/yes |
Changing the key of network device to be both ipv4 + ipv6 (cherry picked from commit a270061)
Gaprindashvili backport details:
|
A network device may not have ipv4 addresses at all, using ipv4 as the sole
key is not enough.