in-band: Do not use manager with loopback address for in-band control.
authorAlex Wang <alexw@nicira.com>
Mon, 20 Apr 2015 22:01:40 +0000 (15:01 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 21 Apr 2015 00:18:41 +0000 (17:18 -0700)
commitf0a5ac682769c3893bf68d608725ed42ebfc630c
treec6d2be0e4ab52bc1a59c6b0983461f9f644e5646
parentb514f972821d2b8ff3de1e90827cf66ef65127ce
in-band: Do not use manager with loopback address for in-band control.

If the manager resides on the same host as ovs, the manager target will
be the loopback address.  Then, if in-band is enabled on a bridge, the
in-band module will constantly checks the connection to the manager to
make sure the manager is reachable.  However, the connection checking
implementation cannot identify the route for the loopback address and
will keep issuing the following warning:

|in_band|WARN|cannot find route for controller (127.0.0.1): No such
device or address.

To fix this, this commit makes ovs not consider manager with loopback
for in-band control at all, since the manager is always reachable
on the same host.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
vswitchd/bridge.c