tools/testing/selftests/net/forwarding/router_bridge_lag.sh

Source file repositories/reference/linux-study-clean/tools/testing/selftests/net/forwarding/router_bridge_lag.sh

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/net/forwarding/router_bridge_lag.sh
Extension
.sh
Size
6985 bytes
Lines
325
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0

# +----------------------------+                   +--------------------------+
# | H1 (vrf)                   |                   |                 H2 (vrf) |
# |                            |                   |                          |
# |        + LAG1 (team)       |                   |     + LAG4 (team)        |
# |        | 192.0.2.1/28      |                   |     | 192.0.2.130/28     |
# |        | 2001:db8:1::1/64  |                   |     | 2001:db8:2::2/64   |
# |      __^___                |                   |   __^_____               |
# |     /      \               |                   |  /        \              |
# |    + $h1    + $h4          |                   | + $h2      + $h3         |
# |    |        |              |                   | |          |             |
# +----|--------|--------------+                   +-|----------|-------------+
#      |        |                                    |          |
# +----|--------|------------------------------------|----------|-------------+
# | SW |        |                                    |          |             |
# |    + $swp1  + $swp4                              + $swp2    + $swp3       |
# |     \__ ___/                                      \__ _____/              |
# |        v                                             v                    |
# | +------|-------------------------------+             |                    |
# | |      + LAG2       BR1 (802.1q)       |             + LAG3 (team)        |
# | |        (team)       192.0.2.2/28     |               192.0.2.129/28     |
# | |                     2001:db8:1::2/64 |               2001:db8:2::1/64   |
# | |                                      |                                  |
# | +--------------------------------------+                                  |
# +---------------------------------------------------------------------------+

: ${ALL_TESTS:="
	ping_ipv4
	ping_ipv6

	$(: exercise remastering of LAG2 slaves )
	config_deslave_swp4
	config_wait
	ping_ipv4
	ping_ipv6
	config_enslave_swp4
	config_deslave_swp1
	config_wait
	ping_ipv4
	ping_ipv6
	config_deslave_swp4
	config_enslave_swp1
	config_enslave_swp4
	config_wait
	ping_ipv4
	ping_ipv6

	$(: exercise remastering of LAG2 itself )
	config_remaster_lag2
	config_wait
	ping_ipv4
	ping_ipv6

	$(: exercise remastering of LAG3 slaves )
	config_deslave_swp2
	config_wait
	ping_ipv4
	ping_ipv6
	config_enslave_swp2
	config_deslave_swp3
	config_wait
	ping_ipv4
	ping_ipv6
	config_deslave_swp2
	config_enslave_swp3
	config_enslave_swp2
	config_wait
	ping_ipv4

Annotation

Implementation Notes