public class OfmFlowMod extends OpenflowMessage
OpenflowMessage.Headerlength| Modifier and Type | Method and Description |
|---|---|
List<Action> |
getActions()
Returns the list of actions; Since 1.0; Removed at 1.1.
For messages 1.1 and higher, this method will always return null. |
BufferId |
getBufferId()
Returns the ID of the packet buffer; Since 1.0.
This may be OFP_NO_BUFFER. |
FlowModCommand |
getCommand()
Returns the flow mod command; Since 1.0.
|
long |
getCookie()
Returns the opaque controller-issued identifier; Since 1.0.
|
long |
getCookieMask()
Returns the cookie mask; Since 1.1.
|
Set<FlowModFlag> |
getFlags()
Returns the set of flow mod flags; Since 1.0.
|
int |
getHardTimeout()
Returns the max time before discarding (seconds); Since 1.0.
|
int |
getIdleTimeout()
Returns the idle time before discarding (seconds); Since 1.0.
|
List<Instruction> |
getInstructions()
Returns the list of instructions; Since 1.1.
For 1.0 messages, this method will always return null. |
Match |
getMatch()
Returns the match; Since 1.0.
|
GroupId |
getOutGroup()
For
DELETE* commands, requires matching entries to include
this group as an output group; Since 1.1.A value of Group#ANY indicates no restriction. |
BigPortNumber |
getOutPort()
For
DELETE* commands, requires matching entries to include
this port as an output port; Since 1.0.A value of Port.ANY indicates no restriction. |
int |
getPriority()
Returns the priority level of the flow entry; Since 1.0.
|
TableId |
getTableId()
Returns the table ID; Since 1.1.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toString() |
void |
validate()
Validates this message for completeness and throws an exception
if the message is considered "not complete".
|
decodeHeader, getType, getVersion, getXid, hex, hex, lengthpublic String toString()
toString in class OpenflowMessagepublic String toDebugString()
OpenflowMessageOpenflowMessage.toString(), but
subclasses are free to override this behavior.toDebugString in interface StructuretoDebugString in class OpenflowMessagepublic void validate()
throws IncompleteMessageException
OpenflowMessageThis default implementation does nothing, i.e. default behavior is that messages are considered complete.
Subclasses should override this method to check that mandatory fields or other internal state is present, throwing an exception if it is not.
validate in class OpenflowMessageIncompleteMessageException - if the message is not completepublic long getCookie()
public long getCookieMask()
MODIFY* or DELETE*. A value of 0 indicates
no restrictions.
For 1.0 messages this method returns 0.
public TableId getTableId()
DELETE* commands,
TableId.ALL can also be used to delete matching flows from all
tables.
For 1.0 messages this method returns 0.
public FlowModCommand getCommand()
public int getIdleTimeout()
public int getHardTimeout()
public int getPriority()
public BufferId getBufferId()
OFP_NO_BUFFER. TODO: where is this defined?
Not meaningful for DELETE* commands.
public BigPortNumber getOutPort()
DELETE* commands, requires matching entries to include
this port as an output port; Since 1.0.Port.ANY indicates no restriction.public GroupId getOutGroup()
DELETE* commands, requires matching entries to include
this group as an output group; Since 1.1.Group#ANY indicates no restriction.public Set<FlowModFlag> getFlags()
public Match getMatch()
public List<Action> getActions()
getInstructions()public List<Instruction> getInstructions()
getActions()Copyright © 2014. All Rights Reserved.