[ovs-dev] [PATCH 1/2] bridge: Run once before configuring CFM.

Ethan Jackson ethan at nicira.com
Thu Apr 7 00:25:57 UTC 2011


CFM configuration requires the ofproto_run function to have been
executed at least once in order to guarantee that the relevant
ports exist.

Bug #5303.
---
 vswitchd/bridge.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 07daacd..21b0247 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -855,8 +855,13 @@ bridge_reconfigure(const struct ovsrec_open_vswitch *ovs_cfg)
         iterate_and_prune_ifaces(br, set_iface_properties, NULL);
     }
 
+    /* Some reconfiguration operations require the bridge to have been run at
+     * least once.  */
     LIST_FOR_EACH (br, node, &all_bridges) {
         struct iface *iface;
+
+        bridge_run_one(br);
+
         HMAP_FOR_EACH (iface, dp_ifidx_node, &br->ifaces) {
             iface_update_cfm(iface);
         }
-- 
1.7.4.2




More information about the dev mailing list