]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
json: tests: fix vlan.t cfi test case
authorFlorian Westphal <fw@strlen.de>
Mon, 14 Jun 2021 12:57:57 +0000 (14:57 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 14 Jun 2021 13:03:35 +0000 (15:03 +0200)
The test case exists twice, once with new dei, once with old 'cfi',
so we need to retain the cfi one in the json file too.

Else we get:
 WARNING: line 2: Wrote JSON equivalent for rule vlan id 4094 vlan dei 1

Fixes: d2fba515ff94 ("src: add vlan dei")
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/py/bridge/vlan.t.json

index d86d7223839ece53527f22e77c55b4148fdb0347..dae70170398a2ba239bd80aff55987ee5d704551 100644 (file)
     }
 ]
 
+# vlan id 4094 vlan dei 1
+[
+    {
+        "match": {
+            "left": {
+                "payload": {
+                    "field": "id",
+                    "protocol": "vlan"
+                }
+            },
+           "op": "==",
+            "right": 4094
+        }
+    },
+    {
+        "match": {
+            "left": {
+                "payload": {
+                    "field": "dei",
+                    "protocol": "vlan"
+                }
+            },
+           "op": "==",
+            "right": 1
+        }
+    }
+]
+
 # vlan id 4094 vlan dei != 1
 [
     {
     }
 ]
 
-# vlan id 4094 vlan dei 1
+# vlan id 4094 vlan cfi 1
 [
     {
         "match": {