<% [[split ",",interfaces]].each do |interface| -%> <% if [[interface !~ /_/]] %> net.ipv4.conf.<%= interface %>.arp_ignore = 1 net.ipv4.conf.<%= interface %>.arp_announce = 2 <% end -%> <% end -%>