1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/bin/bash # Tests parse of corrupted verdicts set -e RULESET=" table ip foo { map bar { type ipv4_addr : verdict elements = { 192.168.0.1 : ber } } chain ber { } }" $NFT -f - <<< "$RULESET" && exit 1 exit 0