- ip4_hosts << host[:fqdn] unless host.interfaces(:role => :external, :family => :inet).empty?
- ip6_hosts << host[:fqdn] unless host.interfaces(:role => :external, :family => :inet6).empty?
+ ip4_hosts << host[:fqdn] unless host.ipaddresses(:role => :external, :family => :inet).empty?
+ ip6_hosts << host[:fqdn] unless host.ipaddresses(:role => :external, :family => :inet6).empty?