From 82a32a376c82fb7a1b9f10ec7146d1c36bb3cca5 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 14 Jun 2021 14:57:57 +0200 Subject: 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 --- tests/py/bridge/vlan.t.json | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'tests') 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": { -- cgit v1.2.3