Lines Matching full:vlan

210 	# Test that when a VLAN interface is deleted, its associated router
212 # c360867ec46a ("mlxsw: spectrum: Delete RIF when VLAN device is
219 ip link add link br0 name br0.10 type vlan id 10
224 ip link add link br0 name br0.20 type vlan id 20
228 log_test "vlan interface deletion"
235 # Test that when a bridge with VLAN interfaces is deleted, we correctly
245 ip link add link br0 name br0.10 type vlan id 10
248 ip link add link br0 name br0.20 type vlan id 20
262 # Test that when bridge VLAN flags are toggled, we do not take
271 bridge vlan add vid 10 dev $swp1 pvid untagged
272 bridge vlan add vid 10 dev $swp1 untagged
273 bridge vlan add vid 10 dev $swp1 pvid
274 bridge vlan add vid 10 dev $swp1
284 log_test "bridge vlan flags"
289 # Test that VLAN 1 can be configured over mlxsw ports. In the past it
291 # ("mlxsw: spectrum: Forbid creation of VLAN 1 over port/LAG") for more
295 ip link add link $swp1 name $swp1.1 type vlan id 1
296 check_err $? "did not manage to create vlan 1 when should"
298 log_test "vlan 1"
307 # ("spectrum: Reference count VLAN entries") for more details
332 # Test that on a given port a VLAN is only used once. Either as VLAN
333 # in a VLAN-aware bridge or as a VLAN device
338 bridge vlan add vid 10 dev $swp1
340 ip link add link $swp1 name $swp1.10 type vlan id 10 &> /dev/null
341 check_fail $? "managed to create vlan device when should not"
343 bridge vlan del vid 10 dev $swp1
344 ip link add link $swp1 name $swp1.10 type vlan id 10
345 check_err $? "did not manage to create vlan device when should"
346 bridge vlan add vid 10 dev $swp1 &> /dev/null
347 check_fail $? "managed to add bridge vlan when should not"
357 # Test that RIFs representing VLAN interfaces are not affected from
358 # ports member in the VLAN. We use the offload indication on routes
368 ip link add link br0 name br0.10 up type vlan id 10
373 check_err $? "vlan rif was not created before adding port to vlan"
375 bridge vlan add vid 10 dev $swp1
378 check_err $? "vlan rif was destroyed after adding port to vlan"
380 bridge vlan del vid 10 dev $swp1
383 check_err $? "vlan rif was destroyed after removing port from vlan"
388 check_err $? "vlan rif was not destroyed after unlinking port from bridge"
390 log_test "vlan rif refcount"
412 ip link add link bond1 name bond1.10 up type vlan id 10
421 check_err $? "subport rif was not created on vlan device"
429 check_err $? "subport rif of vlan device was destroyed when should not"
437 check_err $? "subport rif of vlan device was not destroyed when should"
489 # Test that VLAN devices are correctly deleted / unlinked when enslaved
496 ip link add link $swp1 name $swp1.10 type vlan id 10
497 ip link add link $swp1 name $swp1.20 type vlan id 20
498 ip link add link $swp1 name $swp1.30 type vlan id 30
510 log_test "vlan device deletion"
526 ip link add link bond1 name bond1.10 type vlan id 10
527 ip link add link bond1 name bond1.20 type vlan id 20
542 # the LAG and its VLAN uppers are enslaved to bridges
556 ip link add link $swp1 name $swp1.10 type vlan id 10
560 ip link add link $swp1 name $swp1.20 type vlan id 20
578 # Test that LAG device is correctly deleted, when the LAG and its VLAN
595 # Test that uppers of a VLAN interface are correctly sanitized
601 ip link add link br0 name br0.10 type vlan id 10
614 check_err $? "did not manage to enslave vlan interface to vrf"
619 check_fail $? "managed to enslave vlan interface to bridge when should not"
622 log_test "vlan interface uppers"