]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: add nft-f/0022variables_0 dump file
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 20 Aug 2021 11:05:15 +0000 (13:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 20 Aug 2021 11:40:30 +0000 (13:40 +0200)
Dump file was missing.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/nft-f/dumps/0022priority_variable_0.nft [deleted file]
tests/shell/testcases/nft-f/dumps/0022variables_0.nft [new file with mode: 0644]

diff --git a/tests/shell/testcases/nft-f/dumps/0022priority_variable_0.nft b/tests/shell/testcases/nft-f/dumps/0022priority_variable_0.nft
deleted file mode 100644 (file)
index 2e94459..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-table inet global {
-       chain prerouting {
-               type filter hook prerouting priority filter + 10; policy accept;
-       }
-}
diff --git a/tests/shell/testcases/nft-f/dumps/0022variables_0.nft b/tests/shell/testcases/nft-f/dumps/0022variables_0.nft
new file mode 100644 (file)
index 0000000..d30f4d5
--- /dev/null
@@ -0,0 +1,14 @@
+table ip x {
+       set y {
+               type ipv4_addr
+               size 65535
+               flags dynamic,timeout
+       }
+
+       chain z {
+               type filter hook input priority filter; policy accept;
+               add @y { ip saddr }
+               update @y { ip saddr timeout 30s }
+               ip saddr @y
+       }
+}