summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/cache/0007_echo_cache_init_0
blob: 280a0d06bdc33da7ebd5b784a675e3b4d002ec0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e

$NFT -i >/dev/null <<EOF
add table inet t
add chain inet t c
add rule inet t c accept comment "first"
add rule inet t c accept comment "third"
EOF

# make sure the rule cache gets initialized when using echo option
#
$NFT --echo add rule inet t c index 0 accept comment '"second"' >/dev/null