Look at the following command -
$ sudo mn --controller=remote,ip=127.0.0.1,port=6653 --switch=ovsk,protocols=OpenFlow13 --topo=tree,depth=2,fanout=4
I want to achieve this topology using Python code.
So far I have got the following lines in python which achieve the above command's result partially -
from mininet.net import Mininet
from mininet.node import RemoteController
from mininet.topolib import TreeTopo
controller = RemoteController('c0', ip='127.0.0.1', port=6653)
topo = TreeTopo(2,4)
net = Mininet(topo=topo, controller=controller)
net.start()
How do I include the switch and protocols part in this python code?