1

我想将我的 mininet 中的 openflow 从 1.0 更新到 1.2 或更高版本以运行我的流量推送器,任何人都可以告诉我如何更新它

因为我在推送条目时收到此错误

ERROR [n.f.s.StaticFlowEntryPusher:Dispatcher: Thread-27] Apply Actions Instruction not supported in OpenFlow 1.0

e

4

1 回答 1

1

如果你是从命令行用 mn 运行的,你可以添加参数 --switch ovs,protocols=OpenFlow13

IE

mn --switch ovs,protocols=OpenFlow13

如果您使用 python 脚本运行它,您可以在遥控器中传递 OF 版本:

from mininet.node import RemoteController
from mininet.net import Mininet
from mininet.topo import LinearTopo

c0 = RemoteController('c0', ip=CONTROLLER_IP, port=CONTROLLER_PORT, protocols="OpenFlow13")

topo=LinearTopo(2)
net = Mininet(topo=topo,switch=OVSSwitch,build=False, cleanup=True)
net.addController(c0)
net.build()
net.start()
于 2020-05-25T08:19:31.290 回答