1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #5440: fix importing Wilds in vCenter (#1340)

(cherry picked from commit 0774610cfc528c99b7c286cfdc109697451dea2b)
This commit is contained in:
Carlos J. Herrera 2021-06-30 07:43:05 -04:00 committed by Tino Vazquez
parent dd671bca86
commit f781816aea
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -550,6 +550,10 @@ module VCenterDriver
net.ipConfig.ipAddress.each do |ip_config|
ip = IPAddr.new(ip_config.ipAddress)
if ip.ipv6? && get_ipv6_prefix(ip.to_s, 10) == 'fe80'
next
end
if force
ipv4 = ip.to_s if ip.ipv4?
ipv6 = ip.to_s if ip.ipv6?