Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 1 | package net.floodlightcontroller.flowcache; |
| 2 | |
| 3 | import java.util.ArrayList; |
| 4 | |
| 5 | import net.floodlightcontroller.core.IListener; |
| 6 | import org.openflow.protocol.OFType; |
| 7 | |
| 8 | /** |
| 9 | * The Interface IFlowReconciler. |
| 10 | * |
| 11 | * @author subrata |
| 12 | */ |
| 13 | public interface IFlowReconcileListener extends IListener<OFType> { |
| 14 | /** |
| 15 | * Given an input OFMatch, this method applies the policy of the reconciler |
| 16 | * and returns a the same input OFMatch structure modified. Additional |
| 17 | * OFMatches, if needed, are returned in OFMatch-list. All the OFMatches |
| 18 | * are assumed to have "PERMIT" action. |
| 19 | * |
| 20 | * @param ofmRcList input flow matches, to be updated to be consistent with |
| 21 | * the policies of this reconciler |
| 22 | * Additional OFMatch-es can be added to the "list" as |
| 23 | * needed. |
| 24 | * For example after a new ACL application, one flow-match |
| 25 | * may result in multiple flow-matches |
| 26 | * The method must also update the ReconcileAction |
| 27 | * member in ofmRcList entries to indicate if the |
| 28 | * flow needs to be modified, deleted or left unchanged |
| 29 | * OR of a new entry is to be added after flow |
| 30 | * reconciliation |
| 31 | * |
| 32 | * |
| 33 | * @return Command.CONTINUE if the OFMatch should be sent to the |
| 34 | * next flow reconciler. |
| 35 | * Command.STOP if the OFMatch shouldn't be processed |
| 36 | * further. In this case the no reconciled flow-mods would |
| 37 | * be programmed |
| 38 | */ |
| 39 | public Command reconcileFlows(ArrayList<OFMatchReconcile> ofmRcList); |
| 40 | } |