public static interface TrafficTreatment.Builder
| Modifier and Type | Method and Description |
|---|---|
TrafficTreatment.Builder |
add(Instruction instruction)
Adds an instruction to the builder.
|
TrafficTreatment |
build()
Builds an immutable traffic treatment descriptor.
|
void |
drop()
Adds a drop instruction and does not return a builder.
|
TrafficTreatment.Builder |
popMpls()
Pops MPLS ether type.
|
TrafficTreatment.Builder |
pushMpls()
Push MPLS ether type.
|
TrafficTreatment.Builder |
setEthDst(org.onlab.packet.MacAddress addr)
Sets the dst l2 address.
|
TrafficTreatment.Builder |
setEthSrc(org.onlab.packet.MacAddress addr)
Sets the src l2 address.
|
TrafficTreatment.Builder |
setIpDst(org.onlab.packet.IpAddress addr)
Sets the dst l3 address.
|
TrafficTreatment.Builder |
setIpSrc(org.onlab.packet.IpAddress addr)
Sets the src l3 address.
|
TrafficTreatment.Builder |
setLambda(short lambda)
Sets the optical channel ID or lambda.
|
TrafficTreatment.Builder |
setMpls(Integer mplsLabel)
Sets the mpls label.
|
TrafficTreatment.Builder |
setOutput(PortNumber number)
Set the output port.
|
TrafficTreatment.Builder |
setVlanId(org.onlab.packet.VlanId id)
Sets the vlan id.
|
TrafficTreatment.Builder |
setVlanPcp(Byte pcp)
Sets the vlan priority.
|
TrafficTreatment.Builder add(Instruction instruction)
instruction - an instructionvoid drop()
TrafficTreatment.Builder setOutput(PortNumber number)
number - the out portTrafficTreatment.Builder setEthSrc(org.onlab.packet.MacAddress addr)
addr - a macaddressTrafficTreatment.Builder setEthDst(org.onlab.packet.MacAddress addr)
addr - a macaddressTrafficTreatment.Builder setVlanId(org.onlab.packet.VlanId id)
id - a vlanidTrafficTreatment.Builder setVlanPcp(Byte pcp)
pcp - a vlan priorityTrafficTreatment.Builder setIpSrc(org.onlab.packet.IpAddress addr)
addr - an ipTrafficTreatment.Builder setIpDst(org.onlab.packet.IpAddress addr)
addr - an ipTrafficTreatment.Builder pushMpls()
TrafficTreatment.Builder popMpls()
TrafficTreatment.Builder setMpls(Integer mplsLabel)
mplsLabel - MPLS label.TrafficTreatment.Builder setLambda(short lambda)
lambda - optical channel IDTrafficTreatment build()
Copyright © 2015. All rights reserved.