summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0017add_after_flush_0
blob: 0390b035054ab1fcca0a162765428a76677addcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# This tests for a bug where elements can't be added after flushing a
# full set with the flag NFTNL_SET_DESC_SIZE set

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 flush set x s
$NFT add element x s {1.1.1.1}