prefix = node[:networking][:interfaces][name][:prefix]
- node.set[:networking][:interfaces][name][:netmask] = ~IPAddr.new(interface[:address]).mask(0).mask(prefix)
+ # rubocop:disable Style/RedundantParentheses
+ node.set[:networking][:interfaces][name][:netmask] = (~IPAddr.new(interface[:address]).mask(0)).mask(prefix)
node.set[:networking][:interfaces][name][:network] = IPAddr.new(interface[:address]).mask(prefix)
+ # rubocop:enable Style/RedundantParentheses
end
template "/etc/network/interfaces" do