ovs 即使连不上控制器,依然是可以工作的

82 阅读1分钟

依然可以当作一个正常的基于 “mac学习” 转发交换机

The default “fail-mode” for Open vSwitch bridges is “standalone”, meaning that, when the OpenFlow controllers can not be contacted, Open vSwitch acts as a regular MAC-learning switch. This works well in virtualization environments

**where there is normally just one uplink **(either a single physical interface or a bond). In a more general environment, it can create loops.

So, if you are porting to a general-purpose switch platform, you should consider changing the default “fail-mode” to “secure”, which does not behave this way. See documentation for the “fail-mode” column in the Bridge table in ovs-vswitchd.conf.db(5) for more information.

  • lib/entropy.c assumes that it can obtain high-quality random number seeds at startup by reading from /dev/urandom. You will need to modify it if this is not true on your platform.(高精度随机种子是从内存 /dev/urandom 中读的)

  • vswitchd/system-stats.c only knows how to obtain some statistics on Linux. Optionally you may implement them for your platform as well.

image.png