public static final class DefaultTrafficSelector.Builder extends Object implements TrafficSelector.Builder
public DefaultTrafficSelector.Builder add(Criterion criterion)
TrafficSelector.Builder
add
in interface TrafficSelector.Builder
criterion
- new criterionpublic DefaultTrafficSelector.Builder matchInPort(PortNumber port)
TrafficSelector.Builder
matchInPort
in interface TrafficSelector.Builder
port
- the inportpublic DefaultTrafficSelector.Builder matchInPhyPort(PortNumber port)
TrafficSelector.Builder
matchInPhyPort
in interface TrafficSelector.Builder
port
- the physical inportpublic DefaultTrafficSelector.Builder matchMetadata(long metadata)
TrafficSelector.Builder
matchMetadata
in interface TrafficSelector.Builder
metadata
- the metadatapublic DefaultTrafficSelector.Builder matchEthDst(MacAddress addr)
TrafficSelector.Builder
matchEthDst
in interface TrafficSelector.Builder
addr
- a l2 addresspublic DefaultTrafficSelector.Builder matchEthDstMasked(MacAddress addr, MacAddress mask)
TrafficSelector.Builder
matchEthDstMasked
in interface TrafficSelector.Builder
addr
- a l2 addressmask
- a mask for an l2 addresspublic DefaultTrafficSelector.Builder matchEthSrc(MacAddress addr)
TrafficSelector.Builder
matchEthSrc
in interface TrafficSelector.Builder
addr
- a l2 addresspublic DefaultTrafficSelector.Builder matchEthSrcMasked(MacAddress addr, MacAddress mask)
TrafficSelector.Builder
matchEthSrcMasked
in interface TrafficSelector.Builder
addr
- a l2 addressmask
- a mask for an l2 addresspublic DefaultTrafficSelector.Builder matchEthType(short ethType)
TrafficSelector.Builder
matchEthType
in interface TrafficSelector.Builder
ethType
- an ethernet typepublic DefaultTrafficSelector.Builder matchVlanId(VlanId vlanId)
TrafficSelector.Builder
matchVlanId
in interface TrafficSelector.Builder
vlanId
- a vlan idpublic DefaultTrafficSelector.Builder matchVlanPcp(byte vlanPcp)
TrafficSelector.Builder
matchVlanPcp
in interface TrafficSelector.Builder
vlanPcp
- a vlan prioritypublic DefaultTrafficSelector.Builder matchInnerVlanId(VlanId vlanId)
TrafficSelector.Builder
matchInnerVlanId
in interface TrafficSelector.Builder
vlanId
- a vlan idpublic DefaultTrafficSelector.Builder matchInnerVlanPcp(byte vlanPcp)
TrafficSelector.Builder
matchInnerVlanPcp
in interface TrafficSelector.Builder
vlanPcp
- a vlan prioritypublic DefaultTrafficSelector.Builder matchIPDscp(byte ipDscp)
TrafficSelector.Builder
matchIPDscp
in interface TrafficSelector.Builder
ipDscp
- an IP DSCP valuepublic DefaultTrafficSelector.Builder matchIPEcn(byte ipEcn)
TrafficSelector.Builder
matchIPEcn
in interface TrafficSelector.Builder
ipEcn
- an IP ECN valuepublic DefaultTrafficSelector.Builder matchIPProtocol(byte proto)
TrafficSelector.Builder
matchIPProtocol
in interface TrafficSelector.Builder
proto
- a l3 protocolpublic DefaultTrafficSelector.Builder matchIPSrc(IpPrefix ip)
TrafficSelector.Builder
matchIPSrc
in interface TrafficSelector.Builder
ip
- a l3 addresspublic DefaultTrafficSelector.Builder matchIPDst(IpPrefix ip)
TrafficSelector.Builder
matchIPDst
in interface TrafficSelector.Builder
ip
- a l3 addresspublic DefaultTrafficSelector.Builder matchTcpSrc(TpPort tcpPort)
TrafficSelector.Builder
matchTcpSrc
in interface TrafficSelector.Builder
tcpPort
- a TCP source port numberpublic TrafficSelector.Builder matchTcpSrcMasked(TpPort tcpPort, TpPort mask)
TrafficSelector.Builder
matchTcpSrcMasked
in interface TrafficSelector.Builder
tcpPort
- a TCP source port numbermask
- a mask for a TCP source port numberpublic DefaultTrafficSelector.Builder matchTcpDst(TpPort tcpPort)
TrafficSelector.Builder
matchTcpDst
in interface TrafficSelector.Builder
tcpPort
- a TCP destination port numberpublic TrafficSelector.Builder matchTcpDstMasked(TpPort tcpPort, TpPort mask)
TrafficSelector.Builder
matchTcpDstMasked
in interface TrafficSelector.Builder
tcpPort
- a TCP destination port numbermask
- a mask for a TCP destination port numberpublic DefaultTrafficSelector.Builder matchUdpSrc(TpPort udpPort)
TrafficSelector.Builder
matchUdpSrc
in interface TrafficSelector.Builder
udpPort
- an UDP source port numberpublic TrafficSelector.Builder matchUdpSrcMasked(TpPort udpPort, TpPort mask)
TrafficSelector.Builder
matchUdpSrcMasked
in interface TrafficSelector.Builder
udpPort
- a UDP source port numbermask
- a mask for a UDP source port numberpublic DefaultTrafficSelector.Builder matchUdpDst(TpPort udpPort)
TrafficSelector.Builder
matchUdpDst
in interface TrafficSelector.Builder
udpPort
- an UDP destination port numberpublic TrafficSelector.Builder matchUdpDstMasked(TpPort udpPort, TpPort mask)
TrafficSelector.Builder
matchUdpDstMasked
in interface TrafficSelector.Builder
udpPort
- a UDP destination port numbermask
- a mask for a UDP destination port numberpublic DefaultTrafficSelector.Builder matchSctpSrc(TpPort sctpPort)
TrafficSelector.Builder
matchSctpSrc
in interface TrafficSelector.Builder
sctpPort
- a SCTP source port numberpublic TrafficSelector.Builder matchSctpSrcMasked(TpPort sctpPort, TpPort mask)
TrafficSelector.Builder
matchSctpSrcMasked
in interface TrafficSelector.Builder
sctpPort
- a SCTP source port numbermask
- a mask for a SCTP source port numberpublic DefaultTrafficSelector.Builder matchSctpDst(TpPort sctpPort)
TrafficSelector.Builder
matchSctpDst
in interface TrafficSelector.Builder
sctpPort
- a SCTP destination port numberpublic TrafficSelector.Builder matchSctpDstMasked(TpPort sctpPort, TpPort mask)
TrafficSelector.Builder
matchSctpDstMasked
in interface TrafficSelector.Builder
sctpPort
- a SCTP destination port numbermask
- a mask for a SCTP destination port numberpublic DefaultTrafficSelector.Builder matchIcmpType(byte icmpType)
TrafficSelector.Builder
matchIcmpType
in interface TrafficSelector.Builder
icmpType
- an ICMP typepublic DefaultTrafficSelector.Builder matchIcmpCode(byte icmpCode)
TrafficSelector.Builder
matchIcmpCode
in interface TrafficSelector.Builder
icmpCode
- an ICMP codepublic DefaultTrafficSelector.Builder matchIPv6Src(IpPrefix ip)
TrafficSelector.Builder
matchIPv6Src
in interface TrafficSelector.Builder
ip
- a l3 IPv6 addresspublic DefaultTrafficSelector.Builder matchIPv6Dst(IpPrefix ip)
TrafficSelector.Builder
matchIPv6Dst
in interface TrafficSelector.Builder
ip
- a l3 IPv6 addresspublic DefaultTrafficSelector.Builder matchIPv6FlowLabel(int flowLabel)
TrafficSelector.Builder
matchIPv6FlowLabel
in interface TrafficSelector.Builder
flowLabel
- an IPv6 flow labelpublic DefaultTrafficSelector.Builder matchIcmpv6Type(byte icmpv6Type)
TrafficSelector.Builder
matchIcmpv6Type
in interface TrafficSelector.Builder
icmpv6Type
- an ICMPv6 typepublic DefaultTrafficSelector.Builder matchIcmpv6Code(byte icmpv6Code)
TrafficSelector.Builder
matchIcmpv6Code
in interface TrafficSelector.Builder
icmpv6Code
- an ICMPv6 codepublic DefaultTrafficSelector.Builder matchIPv6NDTargetAddress(Ip6Address targetAddress)
TrafficSelector.Builder
matchIPv6NDTargetAddress
in interface TrafficSelector.Builder
targetAddress
- an IPv6 Neighbor Discovery target addresspublic DefaultTrafficSelector.Builder matchIPv6NDSourceLinkLayerAddress(MacAddress mac)
TrafficSelector.Builder
matchIPv6NDSourceLinkLayerAddress
in interface TrafficSelector.Builder
mac
- an IPv6 Neighbor Discovery source link-layer addresspublic DefaultTrafficSelector.Builder matchIPv6NDTargetLinkLayerAddress(MacAddress mac)
TrafficSelector.Builder
matchIPv6NDTargetLinkLayerAddress
in interface TrafficSelector.Builder
mac
- an IPv6 Neighbor Discovery target link-layer addresspublic DefaultTrafficSelector.Builder matchMplsLabel(MplsLabel mplsLabel)
TrafficSelector.Builder
matchMplsLabel
in interface TrafficSelector.Builder
mplsLabel
- a MPLS label.public DefaultTrafficSelector.Builder matchMplsBos(boolean mplsBos)
TrafficSelector.Builder
matchMplsBos
in interface TrafficSelector.Builder
mplsBos
- boolean value indicating BOS=1 (true) or BOS=0 (false).public TrafficSelector.Builder matchTunnelId(long tunnelId)
TrafficSelector.Builder
matchTunnelId
in interface TrafficSelector.Builder
tunnelId
- a tunnel idpublic DefaultTrafficSelector.Builder matchIPv6ExthdrFlags(short exthdrFlags)
TrafficSelector.Builder
matchIPv6ExthdrFlags
in interface TrafficSelector.Builder
exthdrFlags
- the IPv6 Extension Header pseudo-field flagspublic DefaultTrafficSelector.Builder matchArpTpa(Ip4Address addr)
TrafficSelector.Builder
matchArpTpa
in interface TrafficSelector.Builder
addr
- a arp IPv4 destination addresspublic DefaultTrafficSelector.Builder matchArpSpa(Ip4Address addr)
TrafficSelector.Builder
matchArpSpa
in interface TrafficSelector.Builder
addr
- a arp IPv4 source addresspublic DefaultTrafficSelector.Builder matchArpTha(MacAddress addr)
TrafficSelector.Builder
matchArpTha
in interface TrafficSelector.Builder
addr
- a arp_eth_dst addresspublic DefaultTrafficSelector.Builder matchArpSha(MacAddress addr)
TrafficSelector.Builder
matchArpSha
in interface TrafficSelector.Builder
addr
- a arp_eth_src addresspublic DefaultTrafficSelector.Builder matchArpOp(int arpOp)
TrafficSelector.Builder
matchArpOp
in interface TrafficSelector.Builder
arpOp
- a arp operation typepublic DefaultTrafficSelector.Builder matchPi(PiCriterion piCriterion)
TrafficSelector.Builder
matchPi
in interface TrafficSelector.Builder
piCriterion
- protocol-independent criterionpublic TrafficSelector.Builder extension(ExtensionSelector extensionSelector, DeviceId deviceId)
TrafficSelector.Builder
extension
in interface TrafficSelector.Builder
extensionSelector
- extension selectordeviceId
- device IDpublic TrafficSelector build()
TrafficSelector.Builder
build
in interface TrafficSelector.Builder