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

F #2161 Skip loopback IP on vxlan tep (#2595)

This commit is contained in:
Jan Orel 2018-11-16 10:36:39 +01:00 committed by Ruben S. Montero
parent 83151d1e1a
commit d742a6ac09

View File

@ -95,7 +95,12 @@ module VXLAN
text.each_line do |line|
m = line.match(/^\s*inet6? ([a-f:\d\.]+)/i)
return m[1] if m
if m
next if m[1].start_with?('127.')
next if m[1] == '::1'
return m[1]
end
end
return nil
end
end