#!/bin/bash set -e $NFT -f /dev/stdin < $tmpfile # this restore works, because set is still the rhash backend. $NFT -f $tmpfile # success $NFT flush ruleset # fails without commit 'attempt to set_eval flag if dynamic updates requested', # because set in $tmpfile has 'size x' but no 'flags dynamic'. $NFT -f $tmpfile