From b42c5c24041ddb6553aa9ca88888a2ecfd6e4c99 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Tue, 18 Jan 2011 16:01:45 -0800 Subject: [PATCH] vswitchd: Display miimon interval. Causes bond/show to display the miimon interval for bonded ports when configured to use miimon instead of carrier. Requested-by: Michael Mao Bug #4418. --- vswitchd/bridge.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 7fa819cf..fb8ce5f1 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: %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); -- 2.30.2