Bug 3302: fix for GroupTable
[groupbasedpolicy.git] / renderers / ofoverlay / src / main / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / flow / FlowTable.java
index 522935ea005044b80ec0adbbd31715c4c49a9666..bd8ed8b7cb0c86f1305eabe78b977dd926d4a26a 100755 (executable)
@@ -8,8 +8,8 @@
 
 package org.opendaylight.groupbasedpolicy.renderer.ofoverlay.flow;
 
+import org.opendaylight.groupbasedpolicy.renderer.ofoverlay.OfWriter;
 import org.opendaylight.groupbasedpolicy.renderer.ofoverlay.OfContext;
-import org.opendaylight.groupbasedpolicy.renderer.ofoverlay.PolicyManager.FlowMap;
 import org.opendaylight.groupbasedpolicy.resolver.PolicyInfo;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow;
@@ -38,9 +38,9 @@ public abstract class FlowTable extends OfTable {
 
     @Override
     public void update(NodeId nodeId, PolicyInfo policyInfo,
-                       FlowMap flowMap) throws Exception {
+                       OfWriter ofWriter) throws Exception {
 
-        sync(nodeId, policyInfo, flowMap);
+        sync(nodeId, policyInfo, ofWriter);
 
     }
 
@@ -52,7 +52,7 @@ public abstract class FlowTable extends OfTable {
      * Sync flow state using the flow map
      * @throws Exception
      */
-    public abstract void sync(NodeId nodeId, PolicyInfo policyInfo, FlowMap flowMap) throws Exception;
+    public abstract void sync(NodeId nodeId, PolicyInfo policyInfo, OfWriter ofWriter) throws Exception;
 
     /**
      * Get the table ID being manipulated