summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2016-02-22 13:29:51 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-27 20:40:11 +0900
commit4d8c6d3a7c30a7aafc61a604e16716c4ab57f72f (patch)
tree6fd1e29d0fdee5d7e2b4eb40e48d11549f35d069
parentf2bb13dbb5fe04420db86465b7effbd78f549319 (diff)
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 <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rwxr-xr-xryu/tests/switch/run_mininet.py4
1 files changed, 3 insertions, 1 deletions
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')