net.floodlightcontroller.staticflowentry
Interface IStaticFlowEntryPusherService

All Superinterfaces:
IFloodlightService
All Known Implementing Classes:
StaticFlowEntryPusher

public interface IStaticFlowEntryPusherService
extends IFloodlightService


Method Summary
 void addFlow(java.lang.String name, OFFlowMod fm, java.lang.String swDpid)
          Adds a static flow.
 void deleteAllFlows()
          Deletes all flows.
 void deleteFlow(java.lang.String name)
          Deletes a static flow
 void deleteFlowsForSwitch(long dpid)
          Deletes all static flows for a practicular switch
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,OFFlowMod>> getFlows()
          Gets all list of all flows
 java.util.Map<java.lang.String,OFFlowMod> getFlows(java.lang.String dpid)
          Gets a list of flows by switch
 

Method Detail

addFlow

void addFlow(java.lang.String name,
             OFFlowMod fm,
             java.lang.String swDpid)
Adds a static flow.

Parameters:
name - Name of the flow mod. Must be unique.
fm - The flow to push.
swDpid - The switch DPID to push it to, in 00:00:00:00:00:00:00:01 notation.

deleteFlow

void deleteFlow(java.lang.String name)
Deletes a static flow

Parameters:
name - The name of the static flow to delete.

deleteFlowsForSwitch

void deleteFlowsForSwitch(long dpid)
Deletes all static flows for a practicular switch

Parameters:
dpid - The DPID of the switch to delete flows for.

deleteAllFlows

void deleteAllFlows()
Deletes all flows.


getFlows

java.util.Map<java.lang.String,java.util.Map<java.lang.String,OFFlowMod>> getFlows()
Gets all list of all flows


getFlows

java.util.Map<java.lang.String,OFFlowMod> getFlows(java.lang.String dpid)
Gets a list of flows by switch