2 Name=<%= @interface[:interface] %>
5 <% if @interface.dig(:inet6, :dhcp) -%>
8 <% if @interface[:inet] -%>
9 Address=<%= @interface[:inet][:address] %>/<%== @interface[:inet][:prefix] %>
11 <% if @interface[:inet6] -%>
12 Address=<%= @interface[:inet6][:address] %>/<%== @interface[:inet6][:prefix] %>
15 <% Array(@interface[:vlans]).sort.uniq.each do |vlan| -%>
16 VLAN=<%= @interface[:interface] %>.<%= vlan %>
18 <% if @interface.dig(:inet6, :dhcp) -%>
21 <% if @interface[:inet6][:dhcp][:duidtype] -%>
22 DUIDType=<%= @interface[:inet6][:dhcp][:duidtype] %>
24 <% if @interface[:inet6][:dhcp][:duidrawdata] -%>
25 DUIDRawData=<%= @interface[:inet6][:dhcp][:duidrawdata] %>
29 <% if @interface.dig(:inet, :gateway) && @interface[:inet][:gateway] != @interface[:inet][:address] -%>
32 Gateway=<%= @interface[:inet][:gateway] %>
34 <% if @interface[:metric] -%>
35 Metric=<%= @interface[:metric] %>
38 <% if @interface.dig(:inet6, :gateway) && @interface[:inet6][:gateway] != @interface[:inet6][:address] -%>
41 Gateway=<%= @interface[:inet6][:gateway] %>
43 <% if @interface[:metric] -%>
44 Metric=<%= @interface[:metric] %>
47 <% Hash(@interface.dig(:inet, :routes)).sort.each do |destination, details| -%>
48 <% unless details[:via] == @interface[:inet][:address] -%>
51 <% if details[:via] -%>
52 Gateway=<%= details[:via] %>
54 Destination=<%= destination %>
55 <% if details[:metric] -%>
56 Metric=<%= details[:metric] %>
58 <% if details[:type] -%>
59 Type=<%= details[:type] %>
63 <% Hash(@interface.dig(:inet6, :routes)).sort.each do |destination, details| -%>
64 <% unless details[:via] == @interface[:inet6][:address] -%>
67 <% if details[:via] -%>
68 Gateway=<%= details[:via] %>
70 Destination=<%= destination %>
71 <% if details[:metric] -%>
72 Metric=<%= details[:metric] %>
74 <% if details[:type] -%>
75 Type=<%= details[:type] %>