]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/py: ip6/flowtable.t: Add missing JSON expected output
authorPhil Sutter <phil@nwl.cc>
Fri, 1 Jun 2018 15:32:12 +0000 (17:32 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 3 Jun 2018 09:47:22 +0000 (11:47 +0200)
The output differs from input in added size property.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/ip6/flowtable.t.json.output [new file with mode: 0644]

diff --git a/tests/py/ip6/flowtable.t.json.output b/tests/py/ip6/flowtable.t.json.output
new file mode 100644 (file)
index 0000000..f63a263
--- /dev/null
@@ -0,0 +1,62 @@
+# meter acct_out { meta iif . ip6 saddr timeout 600s counter }
+[
+    {
+        "meter": {
+            "key": {
+                "elem": {
+                    "timeout": 600,
+                    "val": {
+                        "concat": [
+                            {
+                                "meta": "iif"
+                            },
+                            {
+                                "payload": {
+                                    "field": "saddr",
+                                    "name": "ip6"
+                                }
+                            }
+                        ]
+                    }
+                }
+            },
+            "name": "acct_out",
+            "size": 65535,
+            "stmt": {
+                "counter": null
+            }
+        }
+    }
+]
+
+# meter acct_out { ip6 saddr . meta iif timeout 600s counter }
+[
+    {
+        "meter": {
+            "key": {
+                "elem": {
+                    "timeout": 600,
+                    "val": {
+                        "concat": [
+                            {
+                                "payload": {
+                                    "field": "saddr",
+                                    "name": "ip6"
+                                }
+                            },
+                            {
+                                "meta": "iif"
+                            }
+                        ]
+                    }
+                }
+            },
+            "name": "acct_out",
+            "size": 65535,
+            "stmt": {
+                "counter": null
+            }
+        }
+    }
+]
+