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.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;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.FlowBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Match;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
super(ctx);
}
- // *******
- // OfTable
- // *******
-
- @Override
- public void update(NodeId nodeId, PolicyInfo policyInfo,
- OfWriter ofWriter) throws Exception {
-
- sync(nodeId, policyInfo, ofWriter);
-
- }
-
- // *********
- // FlowTable
- // *********
-
- /**
- * Sync flow state using the flow map
- *
- * @param nodeId the node id
- * @param policyInfo the current policy snapshot
- * @param ofWriter the {@link OfWriter}
- * @throws Exception throws all exception
- */
- public abstract void sync(NodeId nodeId, PolicyInfo policyInfo, OfWriter ofWriter) throws Exception;
-
/**
* Get the table ID being manipulated
*