* Minor refactoring in the original FlowManager logic when setting
the Flow Entry Switch State (for new Flow Entries):
- The appropriate state is not hardcoded anymore inside class
FlowDatabaseOperation. Instead, it is explicitly set by the caller method.
* Add new method FlowManager::pushModifiedFlowEntries() that is used
by the PathComputation to push the modified flow entries to the switches
controlled by this instance.
Eventually, this method will be one that needs to be
modified/refactored/adjusted to use the forthcoming FlowSynchronizer module.
For now, the method is disabled, so it doesn't conflict with the
existing FlowManager mechanism.
diff --git a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/PathComputation.java b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/PathComputation.java
index 661fab1..ae14e09 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/PathComputation.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/PathComputation.java
@@ -243,8 +243,7 @@
//
// Push the Flow Entries that have been modified
//
- // TODO: Uncomment the following to enable pushing of flow entries
- // flowManager.pushModifiedFlowEntries(modifiedFlowPaths);
+ flowManager.pushModifiedFlowEntries(modifiedFlowPaths);
// Cleanup
topologyEvents.clear();