Lines Matching +full:link +full:- +full:name
2 # SPDX-License-Identifier: GPL-2.0
49 ip link set dev $swp1 up
50 ip link set dev $swp2 up
57 ip link set dev $swp2 down
58 ip link set dev $swp1 down
67 ip link add name vrf-test type vrf table 10
68 ip link set dev $swp1 master vrf-test
70 ip -4 address add 192.0.2.1/24 dev vrf-test
72 ip -6 address add 2001:db8:1::1/64 dev vrf-test
75 log_test "RIF - setting IP address on VRF"
77 ip link del dev vrf-test
91 ip link add name br1 up type bridge vlan_filtering 0
92 ip link set dev br1 addr $swp2_mac
93 ip link set dev $swp2 master br1
98 ip link add name d up type dummy
99 ip link set dev d addr 00:11:22:33:44:55
103 ip link set dev d master br1 &>/dev/null
107 ip link set dev $swp2 addr 00:11:22:33:44:55
110 log_test "RIF - attach port with bad MAC to bridge with set MAC"
112 ip link set dev $swp2 addr $swp2_mac
113 ip link del dev d
114 ip link del dev br1
126 ip link add name br0 type bridge vlan_filtering 1
127 ip link set dev $swp1 master br0
129 ip link add link br0 name br0.10 type vlan id 10
130 ip -6 address add 2001:db8:1::1/64 dev br0.10
131 ip link del dev br0.10
134 ip link add link br0 name br0.20 type vlan id 20
135 ip -6 address add 2001:db8:1::1/64 dev br0.20
136 ip link del dev br0.20
140 ip link del dev br0
151 ip link add name br0 type bridge vlan_filtering 1
152 ip link set dev $swp1 master br0
153 ip -6 address add 2001:db8::1/64 dev br0
155 ip link add link br0 name br0.10 type vlan id 10
156 ip -6 address add 2001:db8:1::1/64 dev br0.10
158 ip link add link br0 name br0.20 type vlan id 20
159 ip -6 address add 2001:db8:2::1/64 dev br0.20
161 ip link del dev br0
164 ip -6 address add 2001:db8:1::1/64 dev $swp1
165 ip -6 address del 2001:db8:1::1/64 dev $swp1
178 ip link add name br0 type bridge vlan_filtering 1
179 ip link set dev $swp1 master br0
185 ip link del dev br0
191 # Allow netdevices to be re-created following the reload
205 ip link add link $swp1 name $swp1.1 type vlan id 1
210 ip link del dev $swp1.1
216 # in a VLAN-aware bridge or as a VLAN device
219 ip link add name br0 type bridge vlan_filtering 1
220 ip link set dev $swp1 master br0
223 ip link add link $swp1 name $swp1.10 type vlan id 10 &> /dev/null
227 ip link add link $swp1 name $swp1.10 type vlan id 10
234 ip link del dev $swp1.10
235 ip link del dev br0
245 ip link add name br0 type bridge vlan_filtering 1
246 ip link set dev $swp1 master br0
248 ip link set dev $swp1 up
249 ip link set dev br0 up
251 ip link add link br0 name br0.10 up type vlan id 10
252 ip -6 address add 2001:db8:1::1/64 dev br0.10
255 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
260 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
265 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
268 ip link set dev $swp1 nomaster
270 ip -6 route get fibmatch 2001:db8:1::2 dev br0.10
275 ip link del dev br0.10
276 ip link set dev $swp1 down
277 ip link del dev br0
288 ip link add name bond1 type bond mode 802.3ad
289 ip link set dev $swp1 down
290 ip link set dev $swp2 down
291 ip link set dev $swp1 master bond1
292 ip link set dev $swp2 master bond1
294 ip link set dev bond1 up
295 ip link add link bond1 name bond1.10 up type vlan id 10
296 ip -6 address add 2001:db8:1::1/64 dev bond1
297 ip -6 address add 2001:db8:2::1/64 dev bond1.10
300 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
303 ip -6 route get fibmatch 2001:db8:2::2 dev bond1.10
306 ip link set dev $swp1 nomaster
308 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
311 ip -6 route get fibmatch 2001:db8:2::2 dev bond1.10
314 ip link set dev $swp2 nomaster
316 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
319 ip -6 route get fibmatch 2001:db8:2::2 dev bond1.10
324 ip link del dev bond1.10
325 ip link del dev bond1
336 ip link add name bond1 type bond mode 802.3ad
337 ip link set dev $swp1 down
338 ip link set dev $swp2 down
339 ip link set dev $swp1 master bond1
340 ip link set dev $swp2 master bond1
342 ip link set dev bond1 up
343 ip -6 address add 2001:db8:1::1/64 dev bond1
346 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
349 ip link set dev $swp1 nomaster
351 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
354 ip link set dev $swp1 master bond1
355 ip link set dev $swp2 nomaster
357 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
358 check_err $? "subport rif of lag device was destroyed after re-adding a port and removing another"
360 ip link set dev $swp1 nomaster
362 ip -6 route get fibmatch 2001:db8:1::2 dev bond1
367 ip link del dev bond1
376 ip link add name br10 type bridge
377 ip link add name br20 type bridge
378 ip link add name br30 type bridge
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
382 ip link set dev $swp1.10 master br10
383 ip link set dev $swp1.20 master br20
384 ip link set dev $swp1.30 master br30
388 ip link set dev $swp1.30 nomaster
389 ip link del dev $swp1.20
395 ip link del dev $swp1.30
396 ip link del dev br30
397 ip link del dev br20
398 ip link del dev br10
403 ip link add name bond1 type bond mode 802.3ad
404 ip link set dev $swp1 down
405 ip link set dev $swp2 down
406 ip link set dev $swp1 master bond1
407 ip link set dev $swp2 master bond1
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
412 ip link add name br0 type bridge vlan_filtering 1
413 ip link set dev bond1 master br0
415 ip link add name br10 type bridge
416 ip link set dev bond1.10 master br10
418 ip link add name br20 type bridge
419 ip link set dev bond1.20 master br20
430 ip link set dev $swp1 nomaster
432 ip link set dev $swp2 nomaster
436 ip -6 address add 2001:db8:1::1/64 dev $swp1
439 ip link add link $swp1 name $swp1.10 type vlan id 10
440 ip -6 address add 2001:db8:10::1/64 dev $swp1.10
443 ip link add link $swp1 name $swp1.20 type vlan id 20
444 ip -6 address add 2001:db8:20::1/64 dev $swp1.20
449 ip link del dev $swp1.20
450 ip link del dev $swp1.10
453 ip link del dev br20
454 ip link del dev br10
455 ip link del dev br0
456 ip link del dev bond1
467 ip link del dev bond1
471 ip link del dev br20
472 ip link del dev br10
473 ip link del dev br0
481 ip link add name br0 type bridge vlan_filtering 1
482 ip link set dev $swp1 master br0
484 ip link add link br0 name br0.10 type vlan id 10
486 ip -6 address add 2001:db8:1::1/64 dev br0.10
487 ip link add link br0.10 name macvlan0 type macvlan mode private
490 ip link del dev macvlan0
492 ip link add name vrf-test type vrf table 10
493 ip link set dev br0.10 master vrf-test
495 ip link del dev vrf-test
497 ip link add name br-test type bridge
498 ip link set dev br0.10 master br-test &> /dev/null
500 ip link del dev br-test
504 ip link del dev br0
513 ip link add name br0 type bridge
514 ip link set dev $swp1 master br0
524 ip link del dev br0
532 ip -4 address add 192.0.2.1/24 dev $swp1
533 ip -6 address add 2001:db8:1::1/64 dev $swp1
535 ip -4 neigh add 192.0.2.2 lladdr de:ad:be:ef:13:37 nud perm dev $swp1
536 ip -6 neigh add 2001:db8:1::2 lladdr de:ad:be:ef:13:37 nud perm \
540 ip -4 neigh show dev $swp1 192.0.2.2
543 ip -6 neigh show dev $swp1 2001:db8:1::2
548 ip -6 neigh del 2001:db8:1::2 dev $swp1
549 ip -4 neigh del 192.0.2.2 dev $swp1
550 ip -6 address del 2001:db8:1::1/64 dev $swp1
551 ip -4 address del 192.0.2.1/24 dev $swp1
564 ip -4 route add 198.51.100.0/24 vrf v$swp1 \
566 ip -6 route add 2001:db8:2::/64 vrf v$swp1 \
570 ip -4 route show 198.51.100.0/24 vrf v$swp1
573 ip -6 route show 2001:db8:2::/64 vrf v$swp1
576 ip link set dev $swp2 down
580 ip -4 route show 198.51.100.0/24 vrf v$swp1
583 ip -6 route show 2001:db8:2::/64 vrf v$swp1
586 ip link set dev $swp2 up
590 ip -4 route show 198.51.100.0/24 vrf v$swp1
593 ip -6 route show 2001:db8:2::/64 vrf v$swp1
598 ip -6 route del 2001:db8:2::/64 vrf v$swp1
599 ip -4 route del 198.51.100.0/24 vrf v$swp1
625 check_fail $? "managed to configure a nexthop group with device-only nexthops when should not"
634 …check_fail $? "managed to configure a resilient nexthop group with device-only nexthops when shoul…
639 check_fail $? "managed to populate a nexthop bucket with a device-only nexthop when should not"
641 log_test "nexthop objects - invalid configurations"
894 ip link add name br1 up type bridge vlan_filtering 0
896 ip link add link $swp1 name $swp1.10 type vlan id 10
897 ip link set dev $swp1.10 master br1
899 bridge link set dev $swp1.10 locked on
902 ip link set dev $swp1.10 nomaster
903 ip link set dev $swp1 master br1
905 bridge link set dev $swp1 locked on
908 ip link del dev $swp1.10
909 bridge link set dev $swp1 locked on
911 ip link add link $swp1 name $swp1.10 type vlan id 10
916 ip link del dev $swp1.10 &> /dev/null
917 ip link del dev br1
929 log_test "devlink reload - last test"