B #3320: Get ip when multiple ARs (#3321)

(cherry picked from commit 0e7457bfae)
This commit is contained in:
sergiojvg authored and Tino Vazquez committed 2019-05-09 12:35:27 +02:00
1 parent 83bbad6101
commit 558dba1d50
1 file changed
+1
@@ -403,6 +403,7 @@ class Template
ar_array = network.to_hash['VNET']['AR_POOL']['AR']
ar_array = [ar_array] if ar_array.is_a?(Hash)
ipv4, ipv6 = find_ip_in_ar(ip, ar_array) if ar_array
break if ipv4 !="" or ipv6 != ""
end
break
end