public static interface TrafficSelector.Builder
| Modifier and Type | Method and Description |
|---|---|
TrafficSelector.Builder |
add(Criterion criterion)
Adds a traffic selection criterion.
|
TrafficSelector |
build()
Builds an immutable traffic selector.
|
TrafficSelector.Builder |
matchEthDst(org.onlab.packet.MacAddress addr)
Matches a l2 dst address.
|
TrafficSelector.Builder |
matchEthSrc(org.onlab.packet.MacAddress addr)
Matches a l2 src address.
|
TrafficSelector.Builder |
matchEthType(short ethType)
Matches the ethernet type.
|
TrafficSelector.Builder |
matchInport(PortNumber port)
Matches an inport.
|
TrafficSelector.Builder |
matchIPDst(org.onlab.packet.IpPrefix ip)
Matches a l3 address.
|
TrafficSelector.Builder |
matchIPProtocol(Byte proto)
Matches the l3 protocol.
|
TrafficSelector.Builder |
matchIPSrc(org.onlab.packet.IpPrefix ip)
Matches a l3 address.
|
TrafficSelector.Builder |
matchLambda(Short lambda)
Matches an optical signal ID or lambda.
|
TrafficSelector.Builder |
matchMplsLabel(Integer mplsLabel)
Matches on a MPLS label .
|
TrafficSelector.Builder |
matchOpticalSignalType(Short signalType)
Matches an optical Signal Type.
|
TrafficSelector.Builder |
matchTcpDst(Short tcpPort)
Matches a TCP destination port number.
|
TrafficSelector.Builder |
matchTcpSrc(Short tcpPort)
Matches a TCP source port number.
|
TrafficSelector.Builder |
matchVlanId(org.onlab.packet.VlanId vlanId)
Matches the vlan id.
|
TrafficSelector.Builder |
matchVlanPcp(Byte vlanPcp)
Matches a vlan priority.
|
TrafficSelector.Builder add(Criterion criterion)
criterion - new criterionTrafficSelector.Builder matchInport(PortNumber port)
port - the inportTrafficSelector.Builder matchEthSrc(org.onlab.packet.MacAddress addr)
addr - a l2 addressTrafficSelector.Builder matchEthDst(org.onlab.packet.MacAddress addr)
addr - a l2 addressTrafficSelector.Builder matchEthType(short ethType)
ethType - an ethernet typeTrafficSelector.Builder matchVlanId(org.onlab.packet.VlanId vlanId)
vlanId - a vlan idTrafficSelector.Builder matchVlanPcp(Byte vlanPcp)
vlanPcp - a vlan priorityTrafficSelector.Builder matchIPProtocol(Byte proto)
proto - a l3 protocolTrafficSelector.Builder matchIPSrc(org.onlab.packet.IpPrefix ip)
ip - a l3 addressTrafficSelector.Builder matchIPDst(org.onlab.packet.IpPrefix ip)
ip - a l3 addressTrafficSelector.Builder matchTcpSrc(Short tcpPort)
tcpPort - a TCP source port numberTrafficSelector.Builder matchTcpDst(Short tcpPort)
tcpPort - a TCP destination port numberTrafficSelector.Builder matchMplsLabel(Integer mplsLabel)
mplsLabel - a MPLS label.TrafficSelector.Builder matchLambda(Short lambda)
lambda - lamdaTrafficSelector.Builder matchOpticalSignalType(Short signalType)
signalType - signalTypeTrafficSelector build()
Copyright © 2015. All rights reserved.