]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: update test to include reset command
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 3 Jul 2019 11:11:52 +0000 (13:11 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 3 Jul 2019 11:11:52 +0000 (13:11 +0200)
Update tests to invoke the reset command.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/sets/0024named_objects_0
tests/shell/testcases/sets/dumps/0024named_objects_0.nft

index 10f99b62a1434de03a9afa0076df88373c31e232..3bd16f2fd028b2959016732c30b24d5a7979da0f 100755 (executable)
@@ -9,6 +9,9 @@ table inet x {
        counter user123 {
                packets 12 bytes 1433
        }
+       counter user321 {
+               packets 12 bytes 1433
+       }
        quota user123 {
                over 2000 bytes
        }
@@ -31,3 +34,5 @@ table inet x {
 
 set -e
 $NFT -f - <<< "$RULESET"
+
+$NFT reset counter inet x user321
index 91c3c46b6637994b851ec91e381d22235f81b36e..2ffa4f2ff757354bbd5c197eb8bbb3032ac8e15f 100644 (file)
@@ -3,6 +3,10 @@ table inet x {
                packets 12 bytes 1433
        }
 
+       counter user321 {
+               packets 0 bytes 0
+       }
+
        quota user123 {
                over 2000 bytes
        }