You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<forward<% if @property_hash[:forward_dev] %> dev='<%= @property_hash[:forward_dev] %>'<%end%> mode='<%= @property_hash[:forward_mode] %>'<% if !@property_hash[:forward_interfaces] %>/<%end%>>
92
-
<% if @property_hash[:forward_interfaces] %>
93
-
<% @property_hash[:forward_interfaces].each do |dev| %>
99
+
<% if @resource[:forward_mode] %>
100
+
<forward<% if @resource[:forward_dev] %> dev='<%= @resource[:forward_dev] %>'<%end%> mode='<%= @resource[:forward_mode] %>'<% if !@resource[:forward_interfaces] %>/<%end%>>
101
+
<% if @resource[:forward_interfaces] %>
102
+
<% @resource[:forward_interfaces].each do |dev| %>
94
103
<interface dev='<%= dev %>'/>
95
104
<% end %>
96
105
</forward>
97
106
<% end %>
98
107
<% end %>
99
-
<% if @property_hash[:bridge] %>
100
-
<bridge name='<%= @property_hash[:bridge] %>'<% if @property_hash[:forward_mode] and @property_hash[:forward_mode] != 'bridge' %> stp='on' delay='0'<%end%>/>
108
+
<% if @resource[:bridge] %>
109
+
<bridge name='<%= @resource[:bridge] %>'<% if @resource[:forward_mode] and @resource[:forward_mode] != 'bridge' %> stp='on' delay='0'<%end%>/>
101
110
<% end %>
102
-
<%if @property_hash[:ip] %>
103
-
<% @property_hash[:ip].each do |ip| %>
111
+
<%if @resource[:ip] %>
112
+
<% @resource[:ip].each do |ip| %>
104
113
<ip<%if ip['address']%> address='<%=ip['address']%>'<%end%><% if ip['netmask']%> netmask='<%=ip['netmask']%>'<%end%><% if ip['prefix']%> prefix='<%=ip['prefix']%>'<%end%><% unless ip['dhcp'] %>/<% end %>>
105
114
<% if ip['dhcp'] %>
106
115
<% dhcp = ip['dhcp'] %>
@@ -116,8 +125,8 @@ def flush
116
125
<% end%>
117
126
<% end%>
118
127
<%end%>
119
-
<% if @property_hash[:ipv6] %>
120
-
<% @property_hash[:ipv6].each do |ip| %>
128
+
<% if @resource[:ipv6] %>
129
+
<% @resource[:ipv6].each do |ip| %>
121
130
<ip family='ipv6'<% if ip['address']%> address='<%=ip['address']%>'<%end%><% if ip['netmask']%> netmask='<%=ip['netmask']%>'<%end%><% if ip['prefix']%> prefix='<%=ip['prefix']%>'<%end%><% unless ip['dhcp'] %>/<% end %>>
0 commit comments