Lines Matching full:vlan
203 # Test that when a VLAN interface is deleted, its associated router
205 # c360867ec46a ("mlxsw: spectrum: Delete RIF when VLAN device is
212 ip link add link br0 name br0.10 type vlan id 10
217 ip link add link br0 name br0.20 type vlan id 20
221 log_test "vlan interface deletion"
228 # Test that when a bridge with VLAN interfaces is deleted, we correctly
238 ip link add link br0 name br0.10 type vlan id 10
241 ip link add link br0 name br0.20 type vlan id 20
255 # Test that when bridge VLAN flags are toggled, we do not take
264 bridge vlan add vid 10 dev $swp1 pvid untagged
265 bridge vlan add vid 10 dev $swp1 untagged
266 bridge vlan add vid 10 dev $swp1 pvid
267 bridge vlan add vid 10 dev $swp1
277 log_test "bridge vlan flags"
282 # Test that VLAN 1 can be configured over mlxsw ports. In the past it
284 # ("mlxsw: spectrum: Forbid creation of VLAN 1 over port/LAG") for more
288 ip link add link $swp1 name $swp1.1 type vlan id 1
289 check_err $? "did not manage to create vlan 1 when should"
291 log_test "vlan 1"
300 # ("spectrum: Reference count VLAN entries") for more details
325 # Test that on a given port a VLAN is only used once. Either as VLAN
326 # in a VLAN-aware bridge or as a VLAN device
331 bridge vlan add vid 10 dev $swp1
333 ip link add link $swp1 name $swp1.10 type vlan id 10 &> /dev/null
334 check_fail $? "managed to create vlan device when should not"
336 bridge vlan del vid 10 dev $swp1
337 ip link add link $swp1 name $swp1.10 type vlan id 10
338 check_err $? "did not manage to create vlan device when should"
339 bridge vlan add vid 10 dev $swp1 &> /dev/null
340 check_fail $? "managed to add bridge vlan when should not"
350 # Test that RIFs representing VLAN interfaces are not affected from
351 # ports member in the VLAN. We use the offload indication on routes
361 ip link add link br0 name br0.10 up type vlan id 10
366 check_err $? "vlan rif was not created before adding port to vlan"
368 bridge vlan add vid 10 dev $swp1
371 check_err $? "vlan rif was destroyed after adding port to vlan"
373 bridge vlan del vid 10 dev $swp1
376 check_err $? "vlan rif was destroyed after removing port from vlan"
381 check_err $? "vlan rif was not destroyed after unlinking port from bridge"
383 log_test "vlan rif refcount"
405 ip link add link bond1 name bond1.10 up type vlan id 10
414 check_err $? "subport rif was not created on vlan device"
422 check_err $? "subport rif of vlan device was destroyed when should not"
430 check_err $? "subport rif of vlan device was not destroyed when should"
440 # Test that VLAN devices are correctly deleted / unlinked when enslaved
447 ip link add link $swp1 name $swp1.10 type vlan id 10
448 ip link add link $swp1 name $swp1.20 type vlan id 20
449 ip link add link $swp1 name $swp1.30 type vlan id 30
461 log_test "vlan device deletion"
477 ip link add link bond1 name bond1.10 type vlan id 10
478 ip link add link bond1 name bond1.20 type vlan id 20
493 # the LAG and its VLAN uppers are enslaved to bridges
507 ip link add link $swp1 name $swp1.10 type vlan id 10
511 ip link add link $swp1 name $swp1.20 type vlan id 20
529 # Test that LAG device is correctly deleted, when the LAG and its VLAN
546 # Test that uppers of a VLAN interface are correctly sanitized
552 ip link add link br0 name br0.10 type vlan id 10
565 check_err $? "did not manage to enslave vlan interface to vrf"
570 check_fail $? "managed to enslave vlan interface to bridge when should not"
573 log_test "vlan interface uppers"