vswitchd: Display miimon interval.
authorEthan Jackson <ethan@nicira.com>
Wed, 19 Jan 2011 00:01:45 +0000 (16:01 -0800)
committerEthan Jackson <ethan@nicira.com>
Wed, 19 Jan 2011 00:13:14 +0000 (16:13 -0800)
Causes bond/show to display the miimon interval for bonded ports
when configured to use miimon instead of carrier.

Requested-by: Michael Mao <mmao@nicira.com>
Bug #4418.

vswitchd/bridge.c

index 7fa819cf6e821ff8962d45e6fa669dfa2298f1d9..fb8ce5f19ac7ea1ae3da588206c835c0c8565668 100644 (file)
@@ -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: %lld\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);