# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
rule = Hash[
:action => params[:action].to_s.upcase,
:source => params[:source],
rule = Hash[
:action => params[:action].to_s.upcase,
:source => params[:source],
:proto => params[:proto],
:dest_ports => params[:dest_ports] || "-",
:source_ports => params[:source_ports] || "-",
:proto => params[:proto],
:dest_ports => params[:dest_ports] || "-",
:source_ports => params[:source_ports] || "-",
- inet.variables[:rules] << rule unless inet.nil?
- inet6.variables[:rules] << rule unless inet6.nil?
+ node.default[:networking][:firewall][:inet] << rule
+ node.default[:networking][:firewall][:inet6] << rule