@Deprecated public interface FlowService
The services provided allow the consumer to:
Modifier and Type | Method and Description |
---|---|
List<FlowRule> |
getFlows(DataPathId dpid)
Deprecated.
Returns the list of flow rules for the specified datapath.
|
List<FlowRule> |
getFlows(DataPathId dpid,
Match match)
Deprecated.
Returns the list of flow rules for the given match,
and the specified datapath.
|
List<FlowRule> |
getFlows(DataPathId dpid,
Packet pkt)
Deprecated.
Returns the list of flow rules that the given packet would hit,
for the specified datapath.
|
void |
sendFlow(OfmFlowMod flowMod,
DataPathId dpid)
Deprecated.
Sends the OpenFlow FLOW_MOD message to the given datapath.
|
void |
sendFlows(List<OfmFlowMod> flowMod,
DataPathId dpid)
Deprecated.
Sends the list of OpenFlow FLOW_MOD messages to the given datapath.
|
List<FlowRule> getFlows(DataPathId dpid)
dpid
- the datapath IDList<FlowRule> getFlows(DataPathId dpid, Packet pkt)
dpid
- the datapath IDpkt
- the packetList<FlowRule> getFlows(DataPathId dpid, Match match)
dpid
- the datapath IDmatch
- the matchvoid sendFlow(OfmFlowMod flowMod, DataPathId dpid) throws OpenflowException
Note that this call will block until the status of the flow mod request is determined.
Adds the specified flow to the given datapath if the message's
FlowModCommand
is ADD
.
Deletes the specified flow from the given datapath if the message's
FlowModCommand
is DELETE
.
flowMod
- the FLOW_MOD message to senddpid
- the target datapathNullPointerException
- if flowMod or dpid is nullIllegalArgumentException
- if flowMod is mutableOpenflowException
- if there was a problem encoding
or sending the messagevoid sendFlows(List<OfmFlowMod> flowMod, DataPathId dpid) throws OpenflowException
Note that this call will block until the status of the flow mod requests are determined.
Adds the specified flow to the given datapath if the message's
FlowModCommand
is ADD
.
Deletes the specified flow from the given datapath if the message's
FlowModCommand
is DELETE
.
flowMod
- the list of FLOW_MOD messages to senddpid
- the target datapathNullPointerException
- if flowMod or dpid is nullIllegalArgumentException
- if any flowMod in the list is mutableOpenflowException
- if there was a problem encoding or
sending any of the messages.Copyright © 2015. All Rights Reserved.