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

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

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/net/forwarding/router_bridge_1d_lag.sh
Extension
.sh
Size
9528 bytes
Lines
410
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)                                   |
# |                                            |
# |    + LAG1.100          + LAG1.200          |
# |    | 192.0.2.1/28      | 192.0.2.17/28     |
# |    | 2001:db8:1::1/64  | 2001:db8:3:1/64   |
# |    \___________ _______/                   |
# |                v                           |
# |                + LAG1 (team)               |
# |                |                           |
# |            ____^____                       |
# |           /         \                      |
# |          + $h1       + $h4                 |
# |          |           |                     |
# +----------|-----------|---------------------+
#            |           |
# +----------|-----------|---------------------+
# | SW       |           |                     |
# |          + $swp1     + $swp4               |
# |           \____ ____/                      |
# |                v                           |
# |    LAG2 (team) +                           |
# |                |                           |
# |         _______^______________             |
# |        /                      \            |
# | +------|------------+ +-------|----------+ |
# | |      + LAG2.100   | |       + LAG2.200 | |
# | |                   | |                  | |
# | |  BR1 (802.1d)     | | BR2 (802.1d)     | |
# | |  192.0.2.2/28     | | 192.0.2.18/28    | |
# | |  2001:db8:1::2/64 | | 2001:db8:3:2/64  | |
# | |                   | |                  | |
# | +-------------------+ +------------------+ |
# |                                            |
# |  + LAG3.100             + LAG3.200         |
# |  | 192.0.2.129/28       | 192.0.2.145/28   |
# |  | 2001:db8:2::1/64     | 2001:db8:4::1/64 |
# |  |                      |                  |
# |  \_________ ___________/                   |
# |            v                               |
# |            + LAG3 (team)                   |
# |        ____|____                           |
# |       /         \                          |
# |       + $swp2   + $swp3                    |
# |       |         |                          |
# +-------|---------|--------------------------+
#         |         |
# +-------|---------|--------------------------+
# |       |         |                          |
# |       + $h2     + $h3                      |
# |       \____ ___/                           |
# |            |                               |
# |            + LAG4 (team)                   |
# |            |                               |
# |  __________^__________                     |
# | /                     \                    |
# | |                     |                    |
# | + LAG4.100            + LAG4.200           |
# |   192.0.2.130/28        192.0.2.146/28     |
# |   2001:db8:2::2/64      2001:db8:4::2/64   |
# |                                            |
# | H2 (vrf)                                   |
# +--------------------------------------------+

ALL_TESTS="
	ping_ipv4
	ping_ipv6

Annotation

Implementation Notes