Debian Codegraph @

tests/shell/testcases/listing/0008ruleset_arp_0

raw
1 #!/bin/bash
2
3 # listing ruleset per family
4
5 EXPECTED="table arp test {
6 }"
7
8 set -e
9
10 $NFT add table ip test
11 $NFT add table ip6 test
12 $NFT add table inet test
13 $NFT add table arp test
14 $NFT add table bridge test
15
16 GET="$($NFT list ruleset arp)"
17 if [ "$EXPECTED" != "$GET" ] ; then
18 $DIFF -u <(echo "$EXPECTED") <(echo "$GET")
19 exit 1
20 fi