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] %>
37 <% if @interface[:source_route_table] -%>
40 Gateway=<%= @interface[:inet][:gateway] %>
42 <% if @interface[:metric] -%>
43 Metric=<%= @interface[:metric] %>
45 Table=<%= @interface[:source_route_table] %>
48 From=<%= @interface[:inet][:address] %>
49 Table=<%= @interface[:source_route_table] %>
52 <% if @interface.dig(:inet6, :gateway) && @interface[:inet6][:gateway] != @interface[:inet6][:address] -%>
55 Gateway=<%= @interface[:inet6][:gateway] %>
57 <% if @interface[:metric] -%>
58 Metric=<%= @interface[:metric] %>
60 <% if @interface[:source_route_table] -%>
63 Gateway=<%= @interface[:inet6][:gateway] %>
65 <% if @interface[:metric] -%>
66 Metric=<%= @interface[:metric] %>
68 Table=<%= @interface[:source_route_table] %>
71 From=<%= @interface[:inet6][:address] %>
72 Table=<%= @interface[:source_route_table] %>
75 <% Hash(@interface.dig(:inet, :routes)).sort.each do |destination, details| -%>
76 <% unless details[:via] == @interface[:inet][:address] -%>
79 <% if details[:via] -%>
80 Gateway=<%= details[:via] %>
82 Destination=<%= destination %>
83 <% if details[:metric] -%>
84 Metric=<%= details[:metric] %>
86 <% if details[:type] -%>
87 Type=<%= details[:type] %>
91 <% Hash(@interface.dig(:inet6, :routes)).sort.each do |destination, details| -%>
92 <% unless details[:via] == @interface[:inet6][:address] -%>
95 <% if details[:via] -%>
96 Gateway=<%= details[:via] %>
98 Destination=<%= destination %>
99 <% if details[:metric] -%>
100 Metric=<%= details[:metric] %>
102 <% if details[:type] -%>
103 Type=<%= details[:type] %>