vswitchd: In-band rules for Controller are missing after executing force-reload-kmod...
authorAnsis Atteka <aatteka@nicira.com>
Mon, 19 Dec 2011 20:43:34 +0000 (12:43 -0800)
committerAnsis Atteka <aatteka@nicira.com>
Tue, 20 Dec 2011 01:54:13 +0000 (17:54 -0800)
commitac4c900d4b88848cd350fc82665de51ac1497668
treebc9eb202194440252807805b074954a735181259
parent080c686589466b5c802d8fdef7f724cd821c98f3
vswitchd: In-band rules for Controller are missing after executing force-reload-kmod command

In current implementation vswitchd adds Controller in-band rules only if
there is a route in kernel routing table that might route traffic to the
Controller. But, when executing force-reload-kmod command, network
configuration (e.g. assigned IP addresses, routes) are flushed away,
hence Controller in-band rules are not added.

This commit fixes this limitation and allows vswitchd to add Controller
in-band rules even if there are no routes in the kernel routing table.

Issue: #8625

Signed-off-by: Ansis Atteka <aatteka@nicira.com>
lib/stream.c
lib/stream.h
ofproto/connmgr.c
vswitchd/bridge.c