[ovs-dev] [PATCH 3/5] vswitchd: Fix format of LACP appctl output.

Ethan Jackson ethan at nicira.com
Sat Feb 5 02:35:48 UTC 2011


---
 vswitchd/bridge.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 0111040..5b8580a 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -3778,7 +3778,7 @@ bond_unixctl_show(struct unixctl_conn *conn,
                   bond_mode_to_string(port->bond_mode));
 
     if (port->lacp) {
-        ds_put_format(&ds, "\tlacp: %s\n",
+        ds_put_format(&ds, "lacp: %s\n",
                       port->lacp & LACP_ACTIVE ? "active" : "passive");
     } else {
         ds_put_cstr(&ds, "\tlacp: off\n");
@@ -3812,7 +3812,7 @@ bond_unixctl_show(struct unixctl_conn *conn,
         struct flow flow;
 
         /* Basic info. */
-        ds_put_format(&ds, "slave %s: %s\n",
+        ds_put_format(&ds, "\nslave %s: %s\n",
                       iface->name, iface->enabled ? "enabled" : "disabled");
         if (j == port->active_iface) {
             ds_put_cstr(&ds, "\tactive slave\n");
@@ -3880,7 +3880,7 @@ bond_unixctl_show(struct unixctl_conn *conn,
 
             ds_put_cstr(&ds, "\tpartner state: ");
             ds_put_lacp_state(&ds, iface->lacp_partner.state);
-            ds_put_cstr(&ds, "\n\n");
+            ds_put_cstr(&ds, "\n");
         }
 
         if (port->bond_mode == BM_AB) {
-- 
1.7.4





More information about the dev mailing list