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