blob: 66e02dd40809c6e0b8d9569b661b81199b0b1575 [file] [log] [blame]
package net.floodlightcontroller.staticflowentry;
import java.util.Map;
import org.openflow.protocol.OFFlowMod;
import net.floodlightcontroller.core.module.IFloodlightService;
public interface IStaticFlowEntryPusherService extends IFloodlightService {
/**
* Adds a static flow.
* @param name Name of the flow mod. Must be unique.
* @param fm The flow to push.
* @param swDpid The switch DPID to push it to, in 00:00:00:00:00:00:00:01 notation.
*/
public void addFlow(String name, OFFlowMod fm, String swDpid);
/**
* Deletes a static flow
* @param name The name of the static flow to delete.
*/
public void deleteFlow(String name);
/**
* Deletes all static flows for a practicular switch
* @param dpid The DPID of the switch to delete flows for.
*/
public void deleteFlowsForSwitch(long dpid);
/**
* Deletes all flows.
*/
public void deleteAllFlows();
/**
* Gets all list of all flows
*/
public Map<String, Map<String, OFFlowMod>> getFlows();
/**
* Gets a list of flows by switch
*/
public Map<String, OFFlowMod> getFlows(String dpid);
}