Currently there's a lag of up to five seconds before the status and statistics
columns in the Interface table are populated when a port is first added to a
bridge. This may confuse systems that expect those columns to be populated
right away.
Bug #5820.
---
vswitchd/bridge.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index d0a5764..729dff3 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -195,7 +195,9 @@ static void iface_set_mac(struct iface *);
static void iface_set_ofport(const struct ovsrec_interface *, int64_t ofport);
static void iface_configure_qos(struct iface *, const struct ovsrec_qos *);
static void iface_configure_cfm(struct iface *);
-static bool iface_refresh_cfm_stats(struct iface *iface);
+static bool iface_refresh_cfm_stats(struct iface *);
+static void iface_refresh_stats(struct iface *);
+static void iface_refresh_status(struct iface *);
static bool iface_get_carrier(const struct iface *);
static bool iface_is_synthetic(const struct iface *);
@@ -859,6 +861,10 @@ bridge_add_ofproto_ports(struct bridge *br)
} else {
error = netdev_set_config(iface->netdev, &args);
}
+ if (!error) {
+ iface_refresh_stats(iface);
+ iface_refresh_status(iface);
+ }
shash_destroy(&args);
if (error) {
VLOG_WARN("could not %s network device %s (%s)",
--
1.7.4.1
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev