summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-04-09 10:38:39 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-04-13 15:05:14 +0900
commit4da87c2877411c7e0f00c6663b4cb72d077b5b44 (patch)
treee56ba9f791e99e530fed4199156bc2c87e1703b1
parent329707d523244372e9fae2a792ab4641b6bcd117 (diff)
rtc_test: Add description for topologies
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
-rw-r--r--test/scenario_test/rtc_test.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/scenario_test/rtc_test.py b/test/scenario_test/rtc_test.py
index cf716e17..769988a2 100644
--- a/test/scenario_test/rtc_test.py
+++ b/test/scenario_test/rtc_test.py
@@ -34,6 +34,9 @@ class GoBGPTestBase(unittest.TestCase):
@classmethod
def setUpClass(cls):
+ # +----+ +----+
+ # | g1 |----(iBGP)----| g2 |
+ # +----+ +----+
gobgp_ctn_image_name = parser_option.gobgp_image
base.TEST_PREFIX = parser_option.test_prefix
@@ -90,6 +93,16 @@ class GoBGPTestBase(unittest.TestCase):
self.assertEqual(1, len(self.g1.get_adj_rib_in(self.g2, rf='ipv4-l3vpn')))
def test_05_rr_setup(self):
+ # +------+
+ # | g3 |
+ # +------| (RR) |------+
+ # | +------+ |
+ # (iBGP) (iBGP)
+ # | |
+ # +-------------+ +-------------+
+ # | g4 | | g5 |
+ # | (RR Client) | | (RR Client) |
+ # +-------------+ +-------------+
gobgp_ctn_image_name = parser_option.gobgp_image
g3 = GoBGPContainer(name='g3', asn=65000, router_id='192.168.0.3',
ctn_image_name=gobgp_ctn_image_name,
@@ -158,6 +171,24 @@ class GoBGPTestBase(unittest.TestCase):
check_ipv4_l3vpn(g5)
def test_08_rr_setup2(self):
+ # +----------+ +----------+
+ # | g1 |---(iBGP)---| g2 |
+ # | (Non RR | | (Non RR |
+ # | Client) | | Client) |
+ # +----------+ +----------+
+ # | |
+ # +--(iBGP)--+ +--(iBGP)--+
+ # | |
+ # +------+
+ # | g3 |
+ # +------| (RR) |------+
+ # | +------+ |
+ # (iBGP) (iBGP)
+ # | |
+ # +-------------+ +-------------+
+ # | g4 | | g5 |
+ # | (RR Client) | | (RR Client) |
+ # +-------------+ +-------------+
g1 = self.ctns['g1']
g2 = self.ctns['g2']
g3 = self.ctns['g3']