Replay the installedSwView data structure to populate 24/2724/1
authorAsad Ahmed <asaahmed@cisco.com>
Thu, 14 Nov 2013 00:18:03 +0000 (16:18 -0800)
committerAsad Ahmed <asaahmed@cisco.com>
Thu, 14 Nov 2013 00:18:03 +0000 (16:18 -0800)
node flows and group flows.

Change-Id: I1e9054f60b2c9ff0067f8607c6dfc70cf6e79ba7
Signed-off-by: Asad Ahmed <asaahmed@cisco.com>
opendaylight/forwardingrulesmanager/implementation/src/main/java/org/opendaylight/controller/forwardingrulesmanager/internal/ForwardingRulesManager.java

index 3408860..e639d41 100644 (file)
@@ -2608,6 +2608,12 @@ public class ForwardingRulesManager implements
         // Start event handler thread
         frmEventHandler.start();
 
+        // replay the installedSwView data structure to populate
+        // node flows and group flows
+        for (FlowEntryInstall fei : installedSwView.keySet()) {
+            pendingEvents.offer(new UpdateIndexDBs(fei, true));
+        }
+
         /*
          * Read startup and build database if we have not already gotten the
          * configurations synced from another node