diff mbox series

[net-next,09/10] selftests: forwarding: router_mpath_nh_res: Add a diagram

Message ID 1a34016962a2678462c656516ad90d4c0b7ae258.1712940759.git.petrm@nvidia.com (mailing list archive)
State Accepted
Commit b51a94b2d59d8d5f34a5eba1a6b3e733d5cb4355
Headers show
Series selftests: Assortment of fixes | expand

Commit Message

Petr Machata April 12, 2024, 5:03 p.m. UTC
This test lacks a topology diagram, making the setup not obvious.
Add one.

Signed-off-by: Petr Machata <petrm@nvidia.com>
---
 .../net/forwarding/router_mpath_nh_res.sh     | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)

Comments

Hangbin Liu April 15, 2024, 8:31 a.m. UTC | #1
On Fri, Apr 12, 2024 at 07:03:12PM +0200, Petr Machata wrote:
> This test lacks a topology diagram, making the setup not obvious.
> Add one.
> 
> Signed-off-by: Petr Machata <petrm@nvidia.com>
> ---
>  .../net/forwarding/router_mpath_nh_res.sh     | 35 +++++++++++++++++++
>  1 file changed, 35 insertions(+)
> 
> diff --git a/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh b/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh
> index 4b483d24ad00..cd9e346436fc 100755
> --- a/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh
> +++ b/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh
> @@ -1,6 +1,41 @@
>  #!/bin/bash
>  # SPDX-License-Identifier: GPL-2.0
>  
> +# +-------------------------+
> +# |  H1                     |
> +# |               $h1 +     |
> +# |      192.0.2.2/24 |     |
> +# |  2001:db8:1::2/64 |     |
> +# +-------------------|-----+
> +#                     |
> +# +-------------------|----------------------+
> +# |                   |                   R1 |
> +# |             $rp11 +                      |
> +# |      192.0.2.1/24                        |
> +# |  2001:db8:1::1/64                        |
> +# |                                          |
> +# |  + $rp12              + $rp13            |
> +# |  | 169.254.2.12/24    | 169.254.3.13/24  |
> +# |  | fe80:2::12/64      | fe80:3::13/64    |
> +# +--|--------------------|------------------+
> +#    |                    |
> +# +--|--------------------|------------------+
> +# |  + $rp22              + $rp23            |
> +# |    169.254.2.22/24      169.254.3.23/24  |
> +# |    fe80:2::22/64        fe80:3::23/64    |
> +# |                                          |
> +# |             $rp21 +                      |
> +# |   198.51.100.1/24 |                      |
> +# |  2001:db8:2::1/64 |                   R2 |
> +# +-------------------|----------------------+
> +#                     |
> +# +-------------------|-----+
> +# |                   |     |
> +# |               $h2 +     |
> +# |   198.51.100.2/24       |
> +# |  2001:db8:2::2/64    H2 |
> +# +-------------------------+
> +
>  ALL_TESTS="
>  	ping_ipv4
>  	ping_ipv6
> -- 
> 2.43.0
> 
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
diff mbox series

Patch

diff --git a/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh b/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh
index 4b483d24ad00..cd9e346436fc 100755
--- a/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh
+++ b/tools/testing/selftests/net/forwarding/router_mpath_nh_res.sh
@@ -1,6 +1,41 @@ 
 #!/bin/bash
 # SPDX-License-Identifier: GPL-2.0
 
+# +-------------------------+
+# |  H1                     |
+# |               $h1 +     |
+# |      192.0.2.2/24 |     |
+# |  2001:db8:1::2/64 |     |
+# +-------------------|-----+
+#                     |
+# +-------------------|----------------------+
+# |                   |                   R1 |
+# |             $rp11 +                      |
+# |      192.0.2.1/24                        |
+# |  2001:db8:1::1/64                        |
+# |                                          |
+# |  + $rp12              + $rp13            |
+# |  | 169.254.2.12/24    | 169.254.3.13/24  |
+# |  | fe80:2::12/64      | fe80:3::13/64    |
+# +--|--------------------|------------------+
+#    |                    |
+# +--|--------------------|------------------+
+# |  + $rp22              + $rp23            |
+# |    169.254.2.22/24      169.254.3.23/24  |
+# |    fe80:2::22/64        fe80:3::23/64    |
+# |                                          |
+# |             $rp21 +                      |
+# |   198.51.100.1/24 |                      |
+# |  2001:db8:2::1/64 |                   R2 |
+# +-------------------|----------------------+
+#                     |
+# +-------------------|-----+
+# |                   |     |
+# |               $h2 +     |
+# |   198.51.100.2/24       |
+# |  2001:db8:2::2/64    H2 |
+# +-------------------------+
+
 ALL_TESTS="
 	ping_ipv4
 	ping_ipv6