summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/listing/0021ruleset_json_terse_0
blob: c739ac3f29d0d2c613c1e9ac1c977452eeb392c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

$NFT flush ruleset
$NFT add table ip test
$NFT add chain ip test c
$NFT add set ip test s { type ipv4_addr\; }
$NFT add element ip test s { 192.168.3.4, 192.168.3.5 }

if $NFT -j -t list ruleset | grep '192'
then
	exit 1
fi