From: Ben Pfaff Date: Mon, 13 Jul 2009 17:04:45 +0000 (-0700) Subject: vswitchd: Fix log messages when bond slaves are enabled or disabled. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17ea75b2a2762177723822e1ecfb5d3cd14b4ca5;p=openvswitch vswitchd: Fix log messages when bond slaves are enabled or disabled. We were printg "enabled" when a slave was disabled and vice versa. Part of bug #1566. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index febf63be..d2c83b88 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -1384,7 +1384,7 @@ bond_enable_slave(struct iface *iface, bool enable) iface->enabled = enable; if (!iface->enabled) { - VLOG_WARN("interface %s: enabled", iface->name); + VLOG_WARN("interface %s: disabled", iface->name); ofproto_revalidate(br->ofproto, iface->tag); if (iface->port_ifidx == port->active_iface) { ofproto_revalidate(br->ofproto, @@ -1393,7 +1393,7 @@ bond_enable_slave(struct iface *iface, bool enable) } bond_send_learning_packets(port); } else { - VLOG_WARN("interface %s: disabled", iface->name); + VLOG_WARN("interface %s: enabled", iface->name); if (port->active_iface < 0) { ofproto_revalidate(br->ofproto, port->no_ifaces_tag); bond_choose_active_iface(port);