diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-14 14:57:57 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-06-14 15:03:35 +0200 |
commit | 82a32a376c82fb7a1b9f10ec7146d1c36bb3cca5 (patch) | |
tree | 7ed0498c540d26e81a8bdd956a6e97d144ca8a1a /tests | |
parent | 2d0a7a9adeb30708d6fbbee57476c0d4b9214dbd (diff) |
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 <fw@strlen.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/py/bridge/vlan.t.json | 30 |
1 files changed, 29 insertions, 1 deletions
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": { |