]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: add ascii diagram to test_bgp_linkbw_ip 15703/head
authorLouis Scalbert <louis.scalbert@6wind.com>
Tue, 26 Mar 2024 09:23:37 +0000 (10:23 +0100)
committerLouis Scalbert <louis.scalbert@6wind.com>
Mon, 8 Apr 2024 14:19:55 +0000 (16:19 +0200)
Add ASCII diagram to test_bgp_linkbw_ip

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
tests/topotests/bgp_link_bw_ip/test_bgp_linkbw_ip.py

index af6976b5a6edb8d1f301255178c18e651cfb6dee..fd67b2ecddff6bc43e32f63a134d8ec10f93b586 100644 (file)
@@ -53,7 +53,39 @@ anycast IP (VIP) addresses via BGP.
 
 
 def build_topo(tgen):
-    "Build function"
+    """
+    Build function
+
+                                               +------+
+                                               |      |
+                                              /|  r7  |---
+                                             / | 65351|
+                                            /  +------+
+                                           /
+                                 +------+ /    +------+
+                                 |      |/     |      |
+                                /|  r4  |      |  r8  |---
+                               / | 65301|------| 65352|
+                              /  +------+      +------+
+                             /
+                   +------+ /    +------+      +------+
+                   |      |/     |      |      |      |
+                   |  r2  |      |  r5  |      |  r9  |---
+                   | 65201|------| 65302|------| 65353|
+                   +------+      +------+      +------+
+                      |
+     +------+         |
+     |      |----------
+     |  r1  |
+     | 65101|----------
+     +------+         |
+                      |
+                   +------+      +------+      +------+
+                   |      |      |      |      |      |
+                   |  r3  |------|  r6  |------|  r10 |---
+                   | 65202|      | 65303|      | 65354|
+                   +------+      +------+      +------+
+    """
 
     # Create 10 routers - 1 super-spine, 2 spines, 3 leafs
     # and 4 servers