Debian Codegraph @

tests/shell/testcases/sets/0017add_after_flush_0

raw
1 #!/bin/bash
2
3 # This tests for a bug where elements can't be added after flushing a
4 # full set with the flag NFTNL_SET_DESC_SIZE set
5
6 set -e
7 $NFT add table x
8 $NFT add set x s {type ipv4_addr\; size 2\;}
9 $NFT add element x s {1.1.1.1}
10 $NFT add element x s {1.1.1.2}
11 $NFT flush set x s
12 $NFT add element x s {1.1.1.1}