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 <[email protected]> --- 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 1f94d6e..176c610 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') -- 1.9.1 ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
