Multiple controller example


$ ryu-manager --verbose ryu/app/$ ryu-manager --verbose --ofp-tcp-listen-port 5555 ryu/app/

I have constructed a Mininet Python topology file,, that specifies two controllers with two switches connected to both the controllers. Each switch two hosts connected to : = Mininet( controller=RemoteController, switch=OVSKernelSwitch )c1 = net.addController('c1', controller=RemoteController, ip='', port=6633)c2 = net.addController('c2', controller=RemoteController, ip='', port=5555)...s1 = net.addSwitch('s1')s2 = net.addSwitch('s2')...c1.start()c2.start()s1.start([c1,c2])s2.start([c1,c2])...

We can launch the topology:

$ sudo python ...

Get Mastering Python Networking now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.