bridge: Run once before configuring CFM.
authorEthan Jackson <ethan@nicira.com>
Wed, 6 Apr 2011 23:59:22 +0000 (16:59 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 6 Apr 2011 23:59:22 +0000 (16:59 -0700)
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

index 07daacdb6ac7ce3471da5a491c11896ae3424599..21b0247c4667188de5af2d4949a28b439f826e8c 100644 (file)
@@ -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);
         }