| Package | Description |
|---|---|
| org.onosproject.net.flow |
Flow rule model & related services API definitions.
|
| org.onosproject.net.packet |
Mechanism for processing inbound packets intercepted from the data plane and
for emitting outbound packets onto the data plane.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultTrafficTreatment.Builder
Builds a list of treatments following the following order.
|
| Modifier and Type | Method and Description |
|---|---|
TrafficTreatment.Builder |
TrafficTreatment.Builder.add(Instruction instruction)
Adds an instruction to the builder.
|
static TrafficTreatment.Builder |
DefaultTrafficTreatment.builder()
Returns a new traffic treatment builder.
|
static TrafficTreatment.Builder |
DefaultTrafficTreatment.builder(TrafficTreatment treatment)
Returns a new traffic treatment builder primed to produce entities
patterned after the supplied treatment.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.popMpls()
Pops MPLS ether type.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.pushMpls()
Push MPLS ether type.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.setEthDst(org.onlab.packet.MacAddress addr)
Sets the dst l2 address.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.setEthSrc(org.onlab.packet.MacAddress addr)
Sets the src l2 address.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.setIpDst(org.onlab.packet.IpAddress addr)
Sets the dst l3 address.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.setIpSrc(org.onlab.packet.IpAddress addr)
Sets the src l3 address.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.setLambda(short lambda)
Sets the optical channel ID or lambda.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.setMpls(Integer mplsLabel)
Sets the mpls label.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.setOutput(PortNumber number)
Set the output port.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.setVlanId(org.onlab.packet.VlanId id)
Sets the vlan id.
|
TrafficTreatment.Builder |
TrafficTreatment.Builder.setVlanPcp(Byte pcp)
Sets the vlan priority.
|
| Modifier and Type | Method and Description |
|---|---|
TrafficTreatment.Builder |
PacketContext.treatmentBuilder()
Returns a builder for constructing traffic treatment.
|
TrafficTreatment.Builder |
DefaultPacketContext.treatmentBuilder() |
Copyright © 2015. All rights reserved.