Debian Codegraph @

tests/shell/testcases/cache/0002_interval_0

raw
1 #!/bin/bash
2
3 # This testcase checks that we can load a ruleset twice in a row.
4 # bug --> Error: interval overlaps with an existing one
5
6 set -e
7
8 RULESET="flush ruleset
9 table inet t {
10 set s { type ipv4_addr; flags interval; }
11 }
12
13 add element inet t s {
14 192.168.0.1/24,
15 }"
16
17 $NFT -f - <<< "$RULESET"
18 $NFT -f - <<< "$RULESET"