<% end -%>
<% end -%>
<% Hash(@interface.dig(:inet, :routes)).sort.each do |destination, details| -%>
+<% unless details[:via] == @interface[:inet][:address] -%>
[Route]
<% if details[:via] -%>
Type=<%= details[:type] %>
<% end -%>
<% end -%>
+<% end -%>
<% Hash(@interface.dig(:inet6, :routes)).sort.each do |destination, details| -%>
+<% unless details[:via] == @interface[:inet6][:address] -%>
[Route]
<% if details[:via] -%>
Type=<%= details[:type] %>
<% end -%>
<% end -%>
+<% end -%>