]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: add include dumps
authorFlorian Westphal <fw@strlen.de>
Sun, 29 Jun 2025 10:07:00 +0000 (12:07 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 30 Jun 2025 12:36:58 +0000 (14:36 +0200)
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/include/dumps/glob_duplicated_include.json-nft [new file with mode: 0644]

diff --git a/tests/shell/testcases/include/dumps/glob_duplicated_include.json-nft b/tests/shell/testcases/include/dumps/glob_duplicated_include.json-nft
new file mode 100644 (file)
index 0000000..3489e2b
--- /dev/null
@@ -0,0 +1,76 @@
+{
+  "nftables": [
+    {
+      "metainfo": {
+        "version": "VERSION",
+        "release_name": "RELEASE_NAME",
+        "json_schema_version": 1
+      }
+    },
+    {
+      "table": {
+        "family": "inet",
+        "name": "test",
+        "handle": 0
+      }
+    },
+    {
+      "chain": {
+        "family": "inet",
+        "table": "test",
+        "name": "test",
+        "handle": 0
+      }
+    },
+    {
+      "rule": {
+        "family": "inet",
+        "table": "test",
+        "chain": "test",
+        "handle": 0,
+        "expr": [
+          {
+            "match": {
+              "op": "==",
+              "left": {
+                "payload": {
+                  "protocol": "tcp",
+                  "field": "dport"
+                }
+              },
+              "right": 22
+            }
+          },
+          {
+            "accept": null
+          }
+        ]
+      }
+    },
+    {
+      "rule": {
+        "family": "inet",
+        "table": "test",
+        "chain": "test",
+        "handle": 0,
+        "expr": [
+          {
+            "match": {
+              "op": "==",
+              "left": {
+                "payload": {
+                  "protocol": "tcp",
+                  "field": "dport"
+                }
+              },
+              "right": 25
+            }
+          },
+          {
+            "accept": null
+          }
+        ]
+      }
+    }
+  ]
+}