我正在尝试使用 ryu 和 openVswitch 创建一个简单的 sdn 网络,但我的 ryu 控制器似乎无法正常工作。
我只是想 ping 两台主机,但是当我执行命令
ryu-manager simple_switch_13.py
(这是一个预构建的脚本)时,控制器什么也不做,数据路径也不转发数据包,它甚至不会淹没它们。
当我停止 ryu-manager 时,它会给出以下回溯:
Traceback (most recent call last):
File "/usr/bin/ryu-manager", line 9, in <module>
load_entry_point('ryu==3.19', 'console_scripts', 'ryu-manager')()
File "/usr/lib/python2.7/dist-packages/ryu/cmd/manager.py", line 99, in main
hub.joinall(services)
File "/usr/lib/python2.7/dist-packages/ryu/lib/hub.py", line 89, in joinall
t.wait()
File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 175, in wait
return self._exit_event.wait()
File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait
return hubs.get_hub().switch()
File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 294, in switch
return self.greenlet.switch()
File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 346, in run
self.wait(sleep_time)
File "/usr/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line 85, in wait
presult = self.do_poll(seconds)
File "/usr/lib/python2.7/dist-packages/eventlet/hubs/epolls.py", line 62, in do_poll
return self.poll.poll(seconds)
我不认为问题出在代码中,因为 simple_switch_13.py 是一个预构建的脚本。有谁知道我做错了什么?您可以在此处找到 simple_switch_13.py 的示例。
如果我想说什么,请问我,谢谢。