summaryrefslogtreecommitdiffstats
path: root/tests/py/bridge/vlan.t
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-04-01 16:08:46 +0200
committerFlorian Westphal <fw@strlen.de>2021-04-03 13:55:52 +0200
commite9e4c3c9092fdb447f13573f176b1c337f8efc4f (patch)
tree8ce7ee1be7fe0bda3605001b9b35ce0b6827cdda /tests/py/bridge/vlan.t
parent264cb432a2a53e937e46106a4cd04a1eb2dda2ae (diff)
tests: add 8021.AD vlan test cases
Check nft doesn't remove the explicit '8021ad' type check and that the expected dependency chains are generated. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/bridge/vlan.t')
-rw-r--r--tests/py/bridge/vlan.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/py/bridge/vlan.t b/tests/py/bridge/vlan.t
index 7a52a502..8553ba56 100644
--- a/tests/py/bridge/vlan.t
+++ b/tests/py/bridge/vlan.t
@@ -34,6 +34,11 @@ vlan id { 1, 2, 4, 100, 4096 };fail
ether type vlan ip protocol 1 accept;ok
+# IEEE 802.1AD
+ether type 8021ad vlan id 1 ip protocol 6 accept;ok
+ether type 8021ad vlan id 1 vlan type vlan vlan id 2 vlan type ip counter;ok
+ether type 8021ad vlan id 1 vlan type vlan vlan id 2 vlan type ip ip protocol 6;ok;ether type 8021ad vlan id 1 vlan type vlan vlan id 2 ip protocol 6
+
# illegal dependencies
ether type ip vlan id 1;fail
ether type ip vlan id 1 ip saddr 10.0.0.1;fail