Lines Matching full:vlan
120 # Test that when a VLAN interface is deleted, its associated router
122 # c360867ec46a ("mlxsw: spectrum: Delete RIF when VLAN device is
129 ip link add link br0 name br0.10 type vlan id 10
134 ip link add link br0 name br0.20 type vlan id 20
138 log_test "vlan interface deletion"
145 # Test that when a bridge with VLAN interfaces is deleted, we correctly
155 ip link add link br0 name br0.10 type vlan id 10
158 ip link add link br0 name br0.20 type vlan id 20
172 # Test that when bridge VLAN flags are toggled, we do not take
181 bridge vlan add vid 10 dev $swp1 pvid untagged
182 bridge vlan add vid 10 dev $swp1 untagged
183 bridge vlan add vid 10 dev $swp1 pvid
184 bridge vlan add vid 10 dev $swp1
191 log_test "bridge vlan flags"
196 # Test that VLAN 1 can be configured over mlxsw ports. In the past it
198 # ("mlxsw: spectrum: Forbid creation of VLAN 1 over port/LAG") for more
202 ip link add link $swp1 name $swp1.1 type vlan id 1
203 check_err $? "did not manage to create vlan 1 when should"
205 log_test "vlan 1"
212 # Test that on a given port a VLAN is only used once. Either as VLAN
213 # in a VLAN-aware bridge or as a VLAN device
218 bridge vlan add vid 10 dev $swp1
220 ip link add link $swp1 name $swp1.10 type vlan id 10 &> /dev/null
221 check_fail $? "managed to create vlan device when should not"
223 bridge vlan del vid 10 dev $swp1
224 ip link add link $swp1 name $swp1.10 type vlan id 10
225 check_err $? "did not manage to create vlan device when should"
226 bridge vlan add vid 10 dev $swp1 &> /dev/null
227 check_fail $? "managed to add bridge vlan when should not"
237 # Test that RIFs representing VLAN interfaces are not affected from
238 # ports member in the VLAN. We use the offload indication on routes
248 ip link add link br0 name br0.10 up type vlan id 10
253 check_err $? "vlan rif was not created before adding port to vlan"
255 bridge vlan add vid 10 dev $swp1
258 check_err $? "vlan rif was destroyed after adding port to vlan"
260 bridge vlan del vid 10 dev $swp1
263 check_err $? "vlan rif was destroyed after removing port from vlan"
268 check_err $? "vlan rif was not destroyed after unlinking port from bridge"
270 log_test "vlan rif refcount"
292 ip link add link bond1 name bond1.10 up type vlan id 10
301 check_err $? "subport rif was not created on vlan device"
309 check_err $? "subport rif of vlan device was destroyed when should not"
317 check_err $? "subport rif of vlan device was not destroyed when should"
369 # Test that VLAN devices are correctly deleted / unlinked when enslaved
376 ip link add link $swp1 name $swp1.10 type vlan id 10
377 ip link add link $swp1 name $swp1.20 type vlan id 20
378 ip link add link $swp1 name $swp1.30 type vlan id 30
390 log_test "vlan device deletion"
406 ip link add link bond1 name bond1.10 type vlan id 10
407 ip link add link bond1 name bond1.20 type vlan id 20
422 # the LAG and its VLAN uppers are enslaved to bridges
436 ip link add link $swp1 name $swp1.10 type vlan id 10
440 ip link add link $swp1 name $swp1.20 type vlan id 20
458 # Test that LAG device is correctly deleted, when the LAG and its VLAN
475 # Test that uppers of a VLAN interface are correctly sanitized
481 ip link add link br0 name br0.10 type vlan id 10
491 check_err $? "did not manage to enslave vlan interface to vrf"
496 check_fail $? "managed to enslave vlan interface to bridge when should not"
499 log_test "vlan interface uppers"
893 ip link add link $swp1 name $swp1.10 type vlan id 10
897 check_fail $? "managed to set locked flag on a VLAN upper"
903 check_fail $? "managed to set locked flag on a bridge port that has a VLAN upper"
908 ip link add link $swp1 name $swp1.10 type vlan id 10
909 check_fail $? "managed to configure a VLAN upper on a locked port"