public final class Instructions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Instructions.DropInstruction |
static class |
Instructions.OutputInstruction |
| Modifier and Type | Method and Description |
|---|---|
static Instructions.DropInstruction |
createDrop()
Creates a drop instruction.
|
static Instructions.OutputInstruction |
createOutput(PortNumber number)
Creates an output instruction using the specified port number.
|
static L0ModificationInstruction |
modL0Lambda(short lambda)
Creates a l0 modification.
|
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 dst modification.
|
static L3ModificationInstruction |
modL3Src(org.onlab.packet.IpAddress addr)
Creates a L3 src modification.
|
static L2ModificationInstruction |
modMplsLabel(Integer 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 mpls header instruction.
|
static Instruction |
pushMpls()
Creates a mpls header instruction.
|
public static Instructions.OutputInstruction createOutput(PortNumber number)
number - port numberpublic static Instructions.DropInstruction createDrop()
public static L0ModificationInstruction modL0Lambda(short lambda)
lambda - the lambda to modify to.public static L2ModificationInstruction modL2Src(org.onlab.packet.MacAddress addr)
addr - the mac address to modify to.public static L2ModificationInstruction modL2Dst(org.onlab.packet.MacAddress addr)
addr - the mac address to modify to.public static L2ModificationInstruction modVlanId(org.onlab.packet.VlanId vlanId)
vlanId - the vlan id to modify to.public static L2ModificationInstruction modVlanPcp(Byte vlanPcp)
vlanPcp - the pcp to modify to.public static L2ModificationInstruction modMplsLabel(Integer mplsLabel)
mplsLabel - to set.public static L3ModificationInstruction modL3Src(org.onlab.packet.IpAddress addr)
addr - the ip address to modify to.public static L3ModificationInstruction modL3Dst(org.onlab.packet.IpAddress addr)
addr - the ip address to modify to.public static Instruction pushMpls()
public static Instruction popMpls()
Copyright © 2015. All rights reserved.