From: Florian Westphal Date: Mon, 14 Jun 2021 12:57:57 +0000 (+0200) Subject: json: tests: fix vlan.t cfi test case X-Git-Tag: v1.0.0~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82a32a376c82fb7a1b9f10ec7146d1c36bb3cca5;p=thirdparty%2Fnftables.git json: tests: fix vlan.t cfi test case 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 --- diff --git a/tests/py/bridge/vlan.t.json b/tests/py/bridge/vlan.t.json index d86d7223..dae70170 100644 --- a/tests/py/bridge/vlan.t.json +++ b/tests/py/bridge/vlan.t.json @@ -58,6 +58,34 @@ } ] +# 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 [ { @@ -86,7 +114,7 @@ } ] -# vlan id 4094 vlan dei 1 +# vlan id 4094 vlan cfi 1 [ { "match": {