[ovs-dev] [PATCH] vswitchd: Display miimon interval.

Ethan Jackson ethan at nicira.com
Wed Jan 19 00:03:55 UTC 2011


Causes bond/show to display the miimon interval for bonded ports
when configured to use miimon instead of carrier.

Requested-by: Michael Mao <mmao at nicira.com>
---
 vswitchd/bridge.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 7fa819c..1887f7c 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -3355,6 +3355,12 @@ bond_unixctl_show(struct unixctl_conn *conn,
                   bond_mode_to_string(port->bond_mode));
     ds_put_format(&ds, "bond-detect-mode: %s\n",
                   port->miimon ? "miimon" : "carrier");
+
+    if (port->miimon) {
+        ds_put_format(&ds, "bond-miimon-interval: %llu\n",
+                      port->bond_miimon_interval);
+    }
+
     ds_put_format(&ds, "updelay: %d ms\n", port->updelay);
     ds_put_format(&ds, "downdelay: %d ms\n", port->downdelay);
 
-- 
1.7.2





More information about the dev mailing list