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 |
extension(ExtensionSelector extensionSelector,
DeviceId deviceId)
Uses an extension selector.
|
TrafficSelector.Builder |
matchArpOp(int arpOp)
Matches a arp operation type.
|
TrafficSelector.Builder |
matchArpSha(MacAddress addr)
Matches a arp_eth_src address.
|
TrafficSelector.Builder |
matchArpSpa(Ip4Address addr)
Matches a arp IPv4 source address.
|
TrafficSelector.Builder |
matchArpTha(MacAddress addr)
Matches a arp_eth_dst address.
|
TrafficSelector.Builder |
matchArpTpa(Ip4Address addr)
Matches a arp IPv4 destination address.
|
TrafficSelector.Builder |
matchEthDst(MacAddress addr)
Matches a l2 dst address.
|
TrafficSelector.Builder |
matchEthDstMasked(MacAddress addr,
MacAddress mask)
Matches a l2 dst address with mask.
|
TrafficSelector.Builder |
matchEthSrc(MacAddress addr)
Matches a l2 src address.
|
TrafficSelector.Builder |
matchEthSrcMasked(MacAddress addr,
MacAddress mask)
Matches a l2 src address with mask.
|
TrafficSelector.Builder |
matchEthType(short ethType)
Matches the ethernet type.
|
TrafficSelector.Builder |
matchIcmpCode(byte icmpCode)
Matches an ICMP code.
|
TrafficSelector.Builder |
matchIcmpType(byte icmpType)
Matches an ICMP type.
|
TrafficSelector.Builder |
matchIcmpv6Code(byte icmpv6Code)
Matches an ICMPv6 code.
|
TrafficSelector.Builder |
matchIcmpv6Type(byte icmpv6Type)
Matches an ICMPv6 type.
|
TrafficSelector.Builder |
matchInnerVlanId(VlanId vlanId)
Matches the inner vlan id.
|
TrafficSelector.Builder |
matchInnerVlanPcp(byte vlanPcp)
Matches a vlan priority.
|
TrafficSelector.Builder |
matchInPhyPort(PortNumber port)
Matches a physical inport.
|
TrafficSelector.Builder |
matchInPort(PortNumber port)
Matches an inport.
|
TrafficSelector.Builder |
matchIPDscp(byte ipDscp)
Matches an IP DSCP (6 bits in ToS field).
|
TrafficSelector.Builder |
matchIPDst(IpPrefix ip)
Matches a l3 IPv4 address.
|
TrafficSelector.Builder |
matchIPEcn(byte ipEcn)
Matches an IP ECN (2 bits in ToS field).
|
TrafficSelector.Builder |
matchIPProtocol(byte proto)
Matches the l3 protocol.
|
TrafficSelector.Builder |
matchIPSrc(IpPrefix ip)
Matches a l3 IPv4 address.
|
TrafficSelector.Builder |
matchIPv6Dst(IpPrefix ip)
Matches a l3 IPv6 address.
|
TrafficSelector.Builder |
matchIPv6ExthdrFlags(short exthdrFlags)
Matches on IPv6 Extension Header pseudo-field flags.
|
TrafficSelector.Builder |
matchIPv6FlowLabel(int flowLabel)
Matches an IPv6 flow label.
|
TrafficSelector.Builder |
matchIPv6NDSourceLinkLayerAddress(MacAddress mac)
Matches an IPv6 Neighbor Discovery source link-layer address.
|
TrafficSelector.Builder |
matchIPv6NDTargetAddress(Ip6Address targetAddress)
Matches an IPv6 Neighbor Discovery target address.
|
TrafficSelector.Builder |
matchIPv6NDTargetLinkLayerAddress(MacAddress mac)
Matches an IPv6 Neighbor Discovery target link-layer address.
|
TrafficSelector.Builder |
matchIPv6Src(IpPrefix ip)
Matches a l3 IPv6 address.
|
TrafficSelector.Builder |
matchMetadata(long metadata)
Matches a metadata.
|
TrafficSelector.Builder |
matchMplsBos(boolean mplsBos)
Matches on a MPLS Bottom-of-Stack indicator bit.
|
TrafficSelector.Builder |
matchMplsLabel(MplsLabel mplsLabel)
Matches on a MPLS label.
|
TrafficSelector.Builder |
matchPi(PiCriterion piCriterion)
Matches protocol independent fields.
|
TrafficSelector.Builder |
matchSctpDst(TpPort sctpPort)
Matches a SCTP destination port number.
|
TrafficSelector.Builder |
matchSctpDstMasked(TpPort sctpPort,
TpPort mask)
Matches a SCTP destination port number with mask.
|
TrafficSelector.Builder |
matchSctpSrc(TpPort sctpPort)
Matches a SCTP source port number.
|
TrafficSelector.Builder |
matchSctpSrcMasked(TpPort sctpPort,
TpPort mask)
Matches a SCTP source port number with mask.
|
TrafficSelector.Builder |
matchTcpDst(TpPort tcpPort)
Matches a TCP destination port number.
|
TrafficSelector.Builder |
matchTcpDstMasked(TpPort tcpPort,
TpPort mask)
Matches a TCP destination port number with mask.
|
TrafficSelector.Builder |
matchTcpSrc(TpPort tcpPort)
Matches a TCP source port number.
|
TrafficSelector.Builder |
matchTcpSrcMasked(TpPort tcpPort,
TpPort mask)
Matches a TCP source port number with mask.
|
TrafficSelector.Builder |
matchTunnelId(long tunnelId)
Matches a tunnel id.
|
TrafficSelector.Builder |
matchUdpDst(TpPort udpPort)
Matches an UDP destination port number.
|
TrafficSelector.Builder |
matchUdpDstMasked(TpPort udpPort,
TpPort mask)
Matches a UDP destination port number with mask.
|
TrafficSelector.Builder |
matchUdpSrc(TpPort udpPort)
Matches an UDP source port number.
|
TrafficSelector.Builder |
matchUdpSrcMasked(TpPort udpPort,
TpPort mask)
Matches a UDP source port number with mask.
|
TrafficSelector.Builder |
matchVlanId(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 matchInPhyPort(PortNumber port)
port
- the physical inportTrafficSelector.Builder matchMetadata(long metadata)
metadata
- the metadataTrafficSelector.Builder matchEthDst(MacAddress addr)
addr
- a l2 addressTrafficSelector.Builder matchEthDstMasked(MacAddress addr, MacAddress mask)
addr
- a l2 addressmask
- a mask for an l2 addressTrafficSelector.Builder matchEthSrc(MacAddress addr)
addr
- a l2 addressTrafficSelector.Builder matchEthSrcMasked(MacAddress addr, MacAddress mask)
addr
- a l2 addressmask
- a mask for an l2 addressTrafficSelector.Builder matchEthType(short ethType)
ethType
- an ethernet typeTrafficSelector.Builder matchVlanId(VlanId vlanId)
vlanId
- a vlan idTrafficSelector.Builder matchVlanPcp(byte vlanPcp)
vlanPcp
- a vlan priorityTrafficSelector.Builder matchInnerVlanId(VlanId vlanId)
vlanId
- a vlan idTrafficSelector.Builder matchInnerVlanPcp(byte vlanPcp)
vlanPcp
- a vlan priorityTrafficSelector.Builder matchIPDscp(byte ipDscp)
ipDscp
- an IP DSCP valueTrafficSelector.Builder matchIPEcn(byte ipEcn)
ipEcn
- an IP ECN valueTrafficSelector.Builder matchIPProtocol(byte proto)
proto
- a l3 protocolTrafficSelector.Builder matchIPSrc(IpPrefix ip)
ip
- a l3 addressTrafficSelector.Builder matchIPDst(IpPrefix ip)
ip
- a l3 addressTrafficSelector.Builder matchTcpSrc(TpPort tcpPort)
tcpPort
- a TCP source port numberTrafficSelector.Builder matchTcpSrcMasked(TpPort tcpPort, TpPort mask)
tcpPort
- a TCP source port numbermask
- a mask for a TCP source port numberTrafficSelector.Builder matchTcpDst(TpPort tcpPort)
tcpPort
- a TCP destination port numberTrafficSelector.Builder matchTcpDstMasked(TpPort tcpPort, TpPort mask)
tcpPort
- a TCP destination port numbermask
- a mask for a TCP destination port numberTrafficSelector.Builder matchUdpSrc(TpPort udpPort)
udpPort
- an UDP source port numberTrafficSelector.Builder matchUdpSrcMasked(TpPort udpPort, TpPort mask)
udpPort
- a UDP source port numbermask
- a mask for a UDP source port numberTrafficSelector.Builder matchUdpDst(TpPort udpPort)
udpPort
- an UDP destination port numberTrafficSelector.Builder matchUdpDstMasked(TpPort udpPort, TpPort mask)
udpPort
- a UDP destination port numbermask
- a mask for a UDP destination port numberTrafficSelector.Builder matchSctpSrc(TpPort sctpPort)
sctpPort
- a SCTP source port numberTrafficSelector.Builder matchSctpSrcMasked(TpPort sctpPort, TpPort mask)
sctpPort
- a SCTP source port numbermask
- a mask for a SCTP source port numberTrafficSelector.Builder matchSctpDst(TpPort sctpPort)
sctpPort
- a SCTP destination port numberTrafficSelector.Builder matchSctpDstMasked(TpPort sctpPort, TpPort mask)
sctpPort
- a SCTP destination port numbermask
- a mask for a SCTP destination port numberTrafficSelector.Builder matchIcmpType(byte icmpType)
icmpType
- an ICMP typeTrafficSelector.Builder matchIcmpCode(byte icmpCode)
icmpCode
- an ICMP codeTrafficSelector.Builder matchIPv6Src(IpPrefix ip)
ip
- a l3 IPv6 addressTrafficSelector.Builder matchIPv6Dst(IpPrefix ip)
ip
- a l3 IPv6 addressTrafficSelector.Builder matchIPv6FlowLabel(int flowLabel)
flowLabel
- an IPv6 flow labelTrafficSelector.Builder matchIcmpv6Type(byte icmpv6Type)
icmpv6Type
- an ICMPv6 typeTrafficSelector.Builder matchIcmpv6Code(byte icmpv6Code)
icmpv6Code
- an ICMPv6 codeTrafficSelector.Builder matchIPv6NDTargetAddress(Ip6Address targetAddress)
targetAddress
- an IPv6 Neighbor Discovery target addressTrafficSelector.Builder matchIPv6NDSourceLinkLayerAddress(MacAddress mac)
mac
- an IPv6 Neighbor Discovery source link-layer addressTrafficSelector.Builder matchIPv6NDTargetLinkLayerAddress(MacAddress mac)
mac
- an IPv6 Neighbor Discovery target link-layer addressTrafficSelector.Builder matchMplsLabel(MplsLabel mplsLabel)
mplsLabel
- a MPLS label.TrafficSelector.Builder matchMplsBos(boolean mplsBos)
mplsBos
- boolean value indicating BOS=1 (true) or BOS=0 (false).TrafficSelector.Builder matchTunnelId(long tunnelId)
tunnelId
- a tunnel idTrafficSelector.Builder matchIPv6ExthdrFlags(short exthdrFlags)
exthdrFlags
- the IPv6 Extension Header pseudo-field flagsTrafficSelector.Builder matchArpTpa(Ip4Address addr)
addr
- a arp IPv4 destination addressTrafficSelector.Builder matchArpSpa(Ip4Address addr)
addr
- a arp IPv4 source addressTrafficSelector.Builder matchArpTha(MacAddress addr)
addr
- a arp_eth_dst addressTrafficSelector.Builder matchArpSha(MacAddress addr)
addr
- a arp_eth_src addressTrafficSelector.Builder matchArpOp(int arpOp)
arpOp
- a arp operation type@Beta TrafficSelector.Builder matchPi(PiCriterion piCriterion)
piCriterion
- protocol-independent criterionTrafficSelector.Builder extension(ExtensionSelector extensionSelector, DeviceId deviceId)
extensionSelector
- extension selectordeviceId
- device IDTrafficSelector build()