sw test tool: Add a link between switches

This change is for tests that use group_table.

Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Yuichi Ito 2014-05-27 10:03:08 +09:00 committed by FUJITA Tomonori
parent 41a52adaf8
commit 2b4500ab3d
2 changed files with 10 additions and 9 deletions

View File

@ -34,6 +34,7 @@ if '__main__' == __name__:
s1 = net.addSwitch('s1')
s2 = net.addSwitch('s2')
Link(s1, s2)
Link(s1, s2)
Link(s1, s2)

View File

@ -51,15 +51,15 @@ from ryu.ofproto import ofproto_v1_3_parser
""" Required test network:
+-----------+
+----------| target sw | The switch to be tested
| +-----------+
+------------+ (1) (2)
| controller | | |
+------------+ (1) (2)
| +-----------+
+----------| tester sw | OpenFlow Switch
+-----------+
+-------------------+
+----------| target sw | The switch to be tested
| +-------------------+
+------------+ (1) (2) (3)
| controller | | | |
+------------+ (1) (2) (3)
| +-------------------+
+----------| tester sw | OpenFlow Switch
+-------------------+
(X) : port number