<% routers.each do |router| -%> <% if router['linklocalip'] -%> object Host "<%= router['name'] %> (<%= router['linklocalip'] %>)<%= " - #{router['project']}" if router['project'] %> - <%= router['zonename'] %>" { import "generic-host" address = "<%= router['linklocalip'] %>" groups = [ "CloudstackRouter" ] } <% end -%> <% end -%>