Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 1 | package net.floodlightcontroller.staticflowentry; |
| 2 | |
| 3 | import java.util.Map; |
| 4 | |
| 5 | import org.openflow.protocol.OFFlowMod; |
| 6 | |
| 7 | import net.floodlightcontroller.core.module.IFloodlightService; |
| 8 | |
| 9 | public interface IStaticFlowEntryPusherService extends IFloodlightService { |
| 10 | /** |
| 11 | * Adds a static flow. |
| 12 | * @param name Name of the flow mod. Must be unique. |
| 13 | * @param fm The flow to push. |
| 14 | * @param swDpid The switch DPID to push it to, in 00:00:00:00:00:00:00:01 notation. |
| 15 | */ |
| 16 | public void addFlow(String name, OFFlowMod fm, String swDpid); |
| 17 | |
| 18 | /** |
| 19 | * Deletes a static flow |
| 20 | * @param name The name of the static flow to delete. |
| 21 | */ |
| 22 | public void deleteFlow(String name); |
| 23 | |
| 24 | /** |
| 25 | * Deletes all static flows for a practicular switch |
| 26 | * @param dpid The DPID of the switch to delete flows for. |
| 27 | */ |
| 28 | public void deleteFlowsForSwitch(long dpid); |
| 29 | |
| 30 | /** |
| 31 | * Deletes all flows. |
| 32 | */ |
| 33 | public void deleteAllFlows(); |
| 34 | |
| 35 | /** |
| 36 | * Gets all list of all flows |
| 37 | */ |
| 38 | public Map<String, Map<String, OFFlowMod>> getFlows(); |
| 39 | |
| 40 | /** |
| 41 | * Gets a list of flows by switch |
| 42 | */ |
| 43 | public Map<String, OFFlowMod> getFlows(String dpid); |
| 44 | } |