summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/listing/0016anonymous_0
blob: 83acbccae7db9d577f3f220b5b1416ba1b16a182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

$NFT add table x
$NFT add chain x y
$NFT add rule x y ip saddr { 1.1.1.1 }
$NFT add rule x y meta mark set ip saddr map { 1.1.1.1 : 2 }

$NFT list set x __set0 &>/dev/null
ret=$?
if [ $ret -eq 0 ]
then
	exit 1
fi

$NFT flush set x __set0 &>/dev/null
ret=$?
if [ $ret -eq 0 ]
then
	exit 1
fi

$NFT list map x __map0 &>/dev/null
if [ $ret -eq 0 ]
then
	exit 1
fi

$NFT flush map x __map0 &>/dev/null
ret=$?
if [ $ret -eq 0 ]
then
	exit 1
fi