我从终端sudo mn --custom=~/myTopo.py --topo=myTopo --mac --arp --switch=ovsk --controller=remote
通过此命令运行拓扑但是我怎么能在python sript中写同样的命令net = Mininet( topo=topo,switch=OVSSwitch, link=TCLink, controller=RemoteController( 'c0', ip='127.0.0.1', port=6633 ) )
此代码是在脚本中编写的,但我无法在python脚本中包含ARP。它的语法写成什么
您可以使用:
net = Mininet( topo=topo,switch=OVSSwitch, link=TCLink, controller=RemoteController( 'c0', ip='127.0.0.1', port=6633 ) )
net.staticArp()