diff options
-rwxr-xr-x | ryu/tests/switch/run_mininet.py | 4 |
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') |