+ stop_commands = [
+ "/usr/sbin/nft delete table inet filter"
+ ]
+
+ stop_commands << "/usr/sbin/nft delete table ip nat" if node[:roles].include?("gateway")
+
+ systemd_service "nftables-stop" do
+ service "nftables"
+ dropin "stop"
+ exec_reload ""
+ exec_stop stop_commands
+ end
+