From 4d8c6d3a7c30a7aafc61a604e16716c4ab57f72f Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 22 Feb 2016 13:29:51 +0900 Subject: [PATCH] run_mininet: Specify the controller port In the latest mininet, the default controller port has been updated to 6653, but currently the default port of Ryu is 6633. This patch specifies the controller port by using the constant from Ryu ofproto module. Signed-off-by: IWASE Yusuke Signed-off-by: FUJITA Tomonori --- ryu/tests/switch/run_mininet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ryu/tests/switch/run_mininet.py b/ryu/tests/switch/run_mininet.py index 1f94d6e7..176c6106 100755 --- a/ryu/tests/switch/run_mininet.py +++ b/ryu/tests/switch/run_mininet.py @@ -10,6 +10,8 @@ from mininet.node import UserSwitch from oslo_config import cfg from ryu import version +from ryu.ofproto.ofproto_common import OFP_TCP_PORT + if '__main__' == __name__: @@ -30,7 +32,7 @@ if '__main__' == __name__: net = Mininet(switch=switch, controller=RemoteController) - c0 = net.addController('c0') + c0 = net.addController('c0', port=OFP_TCP_PORT) s1 = net.addSwitch('s1') s2 = net.addSwitch('s2')