summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0018set_check_size_1
blob: bc7056056b7848f914fc099323f3a35078b231e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -e
$NFT add table x
$NFT add set x s {type ipv4_addr\; size 2\;}
$NFT add element x s {1.1.1.1}
$NFT add element x s {1.1.1.2}

$NFT add element x s {1.1.1.3} || exit 0
echo "E: Accepted 3rd element in a table with max size of 2" 1>&2
exit 1