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
194 log_test "bridge vlan flags"
199 # Test that VLAN 1 can be configured over mlxsw ports. In the past it
201 # ("mlxsw: spectrum: Forbid creation of VLAN 1 over port/LAG") for more
205 ip link add link $swp1 name $swp1.1 type vlan id 1
206 check_err $? "did not manage to create vlan 1 when should"
208 log_test "vlan 1"
215 # Test that on a given port a VLAN is only used once. Either as VLAN
216 # in a VLAN-aware bridge or as a VLAN device
221 bridge vlan add vid 10 dev $swp1
223 ip link add link $swp1 name $swp1.10 type vlan id 10 &> /dev/null
224 check_fail $? "managed to create vlan device when should not"
226 bridge vlan del vid 10 dev $swp1
227 ip link add link $swp1 name $swp1.10 type vlan id 10
228 check_err $? "did not manage to create vlan device when should"
229 bridge vlan add vid 10 dev $swp1 &> /dev/null
230 check_fail $? "managed to add bridge vlan when should not"
240 # Test that RIFs representing VLAN interfaces are not affected from
241 # ports member in the VLAN. We use the offload indication on routes
251 ip link add link br0 name br0.10 up type vlan id 10
256 check_err $? "vlan rif was not created before adding port to vlan"
258 bridge vlan add vid 10 dev $swp1
261 check_err $? "vlan rif was destroyed after adding port to vlan"
263 bridge vlan del vid 10 dev $swp1
266 check_err $? "vlan rif was destroyed after removing port from vlan"
271 check_err $? "vlan rif was not destroyed after unlinking port from bridge"
273 log_test "vlan rif refcount"
295 ip link add link bond1 name bond1.10 up type vlan id 10
304 check_err $? "subport rif was not created on vlan device"
312 check_err $? "subport rif of vlan device was destroyed when should not"
320 check_err $? "subport rif of vlan device was not destroyed when should"
372 # Test that VLAN devices are correctly deleted / unlinked when enslaved
379 ip link add link $swp1 name $swp1.10 type vlan id 10
380 ip link add link $swp1 name $swp1.20 type vlan id 20
381 ip link add link $swp1 name $swp1.30 type vlan id 30
393 log_test "vlan device deletion"
409 ip link add link bond1 name bond1.10 type vlan id 10
410 ip link add link bond1 name bond1.20 type vlan id 20
425 # the LAG and its VLAN uppers are enslaved to bridges
439 ip link add link $swp1 name $swp1.10 type vlan id 10
443 ip link add link $swp1 name $swp1.20 type vlan id 20
461 # Test that LAG device is correctly deleted, when the LAG and its VLAN
478 # Test that uppers of a VLAN interface are correctly sanitized
484 ip link add link br0 name br0.10 type vlan id 10
494 check_err $? "did not manage to enslave vlan interface to vrf"
499 check_fail $? "managed to enslave vlan interface to bridge when should not"
502 log_test "vlan interface uppers"
896 ip link add link $swp1 name $swp1.10 type vlan id 10
900 check_fail $? "managed to set locked flag on a VLAN upper"
906 check_fail $? "managed to set locked flag on a bridge port that has a VLAN upper"
911 ip link add link $swp1 name $swp1.10 type vlan id 10
912 check_fail $? "managed to configure a VLAN upper on a locked port"