public final class Instructions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Instructions.DropInstruction
Drop instruction.
|
static class |
Instructions.GroupInstruction
Group Instruction.
|
static class |
Instructions.MetadataInstruction
Metadata instruction.
|
static class |
Instructions.OutputInstruction
Output Instruction.
|
static class |
Instructions.TableTypeTransition
Transition instruction.
|
| Modifier and Type | Method and Description |
|---|---|
static L3ModificationInstruction |
copyTtlIn()
Creates a L3 copy TTL to inner header modification.
|
static L3ModificationInstruction |
copyTtlOut()
Creates a L3 copy TTL to outer header modification.
|
static Instructions.DropInstruction |
createDrop()
Creates a drop instruction.
|
static Instructions.GroupInstruction |
createGroup(GroupId groupId)
Creates a group instruction.
|
static Instructions.OutputInstruction |
createOutput(PortNumber number)
Creates an output instruction using the specified port number.
|
static L2ModificationInstruction |
decMplsTtl()
Creates a MPLS decrement TTL modification.
|
static L3ModificationInstruction |
decNwTtl()
Creates a L3 decrement TTL modification.
|
static L0ModificationInstruction |
modL0Lambda(Lambda lambda)
Creates an L0 modification with the specified OCh signal.
|
static L0ModificationInstruction |
modL0Lambda(short lambda)
Deprecated.
in Cardinal Release. Use
modL0Lambda(Lambda) instead. |
static L2ModificationInstruction |
modL2Dst(org.onlab.packet.MacAddress addr)
Creates a L2 dst modification.
|
static L2ModificationInstruction |
modL2Src(org.onlab.packet.MacAddress addr)
Creates a l2 src modification.
|
static L3ModificationInstruction |
modL3Dst(org.onlab.packet.IpAddress addr)
Creates a L3 IPv4 dst modification.
|
static L3ModificationInstruction |
modL3IPv6Dst(org.onlab.packet.IpAddress addr)
Creates a L3 IPv6 dst modification.
|
static L3ModificationInstruction |
modL3IPv6FlowLabel(int flowLabel)
Creates a L3 IPv6 Flow Label modification.
|
static L3ModificationInstruction |
modL3IPv6Src(org.onlab.packet.IpAddress addr)
Creates a L3 IPv6 src modification.
|
static L3ModificationInstruction |
modL3Src(org.onlab.packet.IpAddress addr)
Creates a L3 IPv4 src modification.
|
static L2ModificationInstruction |
modMplsLabel(org.onlab.packet.MplsLabel mplsLabel)
Creates a MPLS label modification.
|
static L2ModificationInstruction |
modVlanId(org.onlab.packet.VlanId vlanId)
Creates a VLAN ID modification.
|
static L2ModificationInstruction |
modVlanPcp(Byte vlanPcp)
Creates a VLAN PCP modification.
|
static Instruction |
popMpls()
Creates a pop MPLS header instruction.
|
static Instruction |
popMpls(int etherType)
Creates a pop MPLS header instruction with a particular ethertype.
|
static Instruction |
popVlan()
Creates a pop VLAN header instruction.
|
static Instruction |
pushMpls()
Creates a push MPLS header instruction.
|
static Instruction |
pushVlan()
Creates a push VLAN header instruction.
|
static Instruction |
transition(Integer tableId)
Sends the packet to the table id.
|
static Instruction |
writeMetadata(long metadata,
long metadataMask)
Writes metadata to associate with a packet.
|
public static Instructions.OutputInstruction createOutput(PortNumber number)
number - port numberpublic static Instructions.DropInstruction createDrop()
public static Instructions.GroupInstruction createGroup(GroupId groupId)
groupId - Group Id@Deprecated public static L0ModificationInstruction modL0Lambda(short lambda)
modL0Lambda(Lambda) instead.lambda - the lambda to modify topublic static L0ModificationInstruction modL0Lambda(Lambda lambda)
lambda - OCh signalpublic static L2ModificationInstruction modL2Src(org.onlab.packet.MacAddress addr)
addr - the mac address to modify topublic static L2ModificationInstruction modL2Dst(org.onlab.packet.MacAddress addr)
addr - the mac address to modify topublic static L2ModificationInstruction modVlanId(org.onlab.packet.VlanId vlanId)
vlanId - the VLAN ID to modify topublic static L2ModificationInstruction modVlanPcp(Byte vlanPcp)
vlanPcp - the PCP to modify topublic static L2ModificationInstruction modMplsLabel(org.onlab.packet.MplsLabel mplsLabel)
mplsLabel - MPLS label to setpublic static L2ModificationInstruction decMplsTtl()
public static L3ModificationInstruction modL3Src(org.onlab.packet.IpAddress addr)
addr - the IPv4 address to modify topublic static L3ModificationInstruction modL3Dst(org.onlab.packet.IpAddress addr)
addr - the IPv4 address to modify topublic static L3ModificationInstruction modL3IPv6Src(org.onlab.packet.IpAddress addr)
addr - the IPv6 address to modify topublic static L3ModificationInstruction modL3IPv6Dst(org.onlab.packet.IpAddress addr)
addr - the IPv6 address to modify topublic static L3ModificationInstruction modL3IPv6FlowLabel(int flowLabel)
flowLabel - the IPv6 flow label to modify to (20 bits)public static L3ModificationInstruction decNwTtl()
public static L3ModificationInstruction copyTtlOut()
public static L3ModificationInstruction copyTtlIn()
public static Instruction pushMpls()
public static Instruction popMpls()
public static Instruction popMpls(int etherType)
etherType - Ethernet type to setpublic static Instruction popVlan()
public static Instruction pushVlan()
public static Instruction transition(Integer tableId)
tableId - flow rule table idpublic static Instruction writeMetadata(long metadata, long metadataMask)
metadata - the metadata value to writemetadataMask - the bits to mask for the metadata valueCopyright © 2015. All rights reserved.