vswitchd: Fix log messages when bond slaves are enabled or disabled.
authorBen Pfaff <blp@nicira.com>
Mon, 13 Jul 2009 17:04:45 +0000 (10:04 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 15 Jul 2009 00:04:40 +0000 (17:04 -0700)
We were printg "enabled" when a slave was disabled and vice versa.

Part of bug #1566.

vswitchd/bridge.c

index febf63bea52b1e1e4a037c4fbd093b4043382617..d2c83b88403f78c81daf5578a9d0764ec4335c6d 100644 (file)
@@ -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);