blob: 66e02dd40809c6e0b8d9569b661b81199b0b1575 [file] [log] [blame]
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08001package net.floodlightcontroller.staticflowentry;
2
3import java.util.Map;
4
5import org.openflow.protocol.OFFlowMod;
6
7import net.floodlightcontroller.core.module.IFloodlightService;
8
9public 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}