Package org.onosproject.net.flow
Class DefaultTrafficSelector.Builder
- java.lang.Object
-
- org.onosproject.net.flow.DefaultTrafficSelector.Builder
-
- All Implemented Interfaces:
TrafficSelector.Builder
- Enclosing class:
- DefaultTrafficSelector
public static final class DefaultTrafficSelector.Builder extends Object implements TrafficSelector.Builder
Builder of traffic selector entities.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultTrafficSelector.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.DefaultTrafficSelector.Builder
matchArpOp(int arpOp)
Matches a arp operation type.DefaultTrafficSelector.Builder
matchArpSha(MacAddress addr)
Matches a arp_eth_src address.DefaultTrafficSelector.Builder
matchArpSpa(Ip4Address addr)
Matches a arp IPv4 source address.DefaultTrafficSelector.Builder
matchArpTha(MacAddress addr)
Matches a arp_eth_dst address.DefaultTrafficSelector.Builder
matchArpTpa(Ip4Address addr)
Matches a arp IPv4 destination address.DefaultTrafficSelector.Builder
matchEthDst(MacAddress addr)
Matches a l2 dst address.DefaultTrafficSelector.Builder
matchEthDstMasked(MacAddress addr, MacAddress mask)
Matches a l2 dst address with mask.DefaultTrafficSelector.Builder
matchEthSrc(MacAddress addr)
Matches a l2 src address.DefaultTrafficSelector.Builder
matchEthSrcMasked(MacAddress addr, MacAddress mask)
Matches a l2 src address with mask.DefaultTrafficSelector.Builder
matchEthType(short ethType)
Matches the ethernet type.DefaultTrafficSelector.Builder
matchIcmpCode(byte icmpCode)
Matches an ICMP code.DefaultTrafficSelector.Builder
matchIcmpType(byte icmpType)
Matches an ICMP type.DefaultTrafficSelector.Builder
matchIcmpv6Code(byte icmpv6Code)
Matches an ICMPv6 code.DefaultTrafficSelector.Builder
matchIcmpv6Type(byte icmpv6Type)
Matches an ICMPv6 type.DefaultTrafficSelector.Builder
matchInnerVlanId(VlanId vlanId)
Matches the inner vlan id.DefaultTrafficSelector.Builder
matchInnerVlanPcp(byte vlanPcp)
Matches a vlan priority.DefaultTrafficSelector.Builder
matchInPhyPort(PortNumber port)
Matches a physical inport.DefaultTrafficSelector.Builder
matchInPort(PortNumber port)
Matches an inport.DefaultTrafficSelector.Builder
matchIPDscp(byte ipDscp)
Matches an IP DSCP (6 bits in ToS field).DefaultTrafficSelector.Builder
matchIPDst(IpPrefix ip)
Matches a l3 IPv4 address.DefaultTrafficSelector.Builder
matchIPEcn(byte ipEcn)
Matches an IP ECN (2 bits in ToS field).DefaultTrafficSelector.Builder
matchIPProtocol(byte proto)
Matches the l3 protocol.DefaultTrafficSelector.Builder
matchIPSrc(IpPrefix ip)
Matches a l3 IPv4 address.DefaultTrafficSelector.Builder
matchIPv6Dst(IpPrefix ip)
Matches a l3 IPv6 address.DefaultTrafficSelector.Builder
matchIPv6ExthdrFlags(short exthdrFlags)
Matches on IPv6 Extension Header pseudo-field flags.DefaultTrafficSelector.Builder
matchIPv6FlowLabel(int flowLabel)
Matches an IPv6 flow label.DefaultTrafficSelector.Builder
matchIPv6NDSourceLinkLayerAddress(MacAddress mac)
Matches an IPv6 Neighbor Discovery source link-layer address.DefaultTrafficSelector.Builder
matchIPv6NDTargetAddress(Ip6Address targetAddress)
Matches an IPv6 Neighbor Discovery target address.DefaultTrafficSelector.Builder
matchIPv6NDTargetLinkLayerAddress(MacAddress mac)
Matches an IPv6 Neighbor Discovery target link-layer address.DefaultTrafficSelector.Builder
matchIPv6Src(IpPrefix ip)
Matches a l3 IPv6 address.DefaultTrafficSelector.Builder
matchMetadata(long metadata)
Matches a metadata.DefaultTrafficSelector.Builder
matchMplsBos(boolean mplsBos)
Matches on a MPLS Bottom-of-Stack indicator bit.DefaultTrafficSelector.Builder
matchMplsLabel(MplsLabel mplsLabel)
Matches on a MPLS label.DefaultTrafficSelector.Builder
matchPi(PiCriterion piCriterion)
Matches protocol independent fields.DefaultTrafficSelector.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.DefaultTrafficSelector.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.DefaultTrafficSelector.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.DefaultTrafficSelector.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.DefaultTrafficSelector.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.DefaultTrafficSelector.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.DefaultTrafficSelector.Builder
matchVlanId(VlanId vlanId)
Matches the vlan id.DefaultTrafficSelector.Builder
matchVlanPcp(byte vlanPcp)
Matches a vlan priority.
-
-
-
Method Detail
-
add
public DefaultTrafficSelector.Builder add(Criterion criterion)
Description copied from interface:TrafficSelector.Builder
Adds a traffic selection criterion. If a same type criterion has already been added, it will be replaced by this one.- Specified by:
add
in interfaceTrafficSelector.Builder
- Parameters:
criterion
- new criterion- Returns:
- self
-
matchInPort
public DefaultTrafficSelector.Builder matchInPort(PortNumber port)
Description copied from interface:TrafficSelector.Builder
Matches an inport.- Specified by:
matchInPort
in interfaceTrafficSelector.Builder
- Parameters:
port
- the inport- Returns:
- a selection builder
-
matchInPhyPort
public DefaultTrafficSelector.Builder matchInPhyPort(PortNumber port)
Description copied from interface:TrafficSelector.Builder
Matches a physical inport.- Specified by:
matchInPhyPort
in interfaceTrafficSelector.Builder
- Parameters:
port
- the physical inport- Returns:
- a selection builder
-
matchMetadata
public DefaultTrafficSelector.Builder matchMetadata(long metadata)
Description copied from interface:TrafficSelector.Builder
Matches a metadata.- Specified by:
matchMetadata
in interfaceTrafficSelector.Builder
- Parameters:
metadata
- the metadata- Returns:
- a selection builder
-
matchEthDst
public DefaultTrafficSelector.Builder matchEthDst(MacAddress addr)
Description copied from interface:TrafficSelector.Builder
Matches a l2 dst address.- Specified by:
matchEthDst
in interfaceTrafficSelector.Builder
- Parameters:
addr
- a l2 address- Returns:
- a selection builder
-
matchEthDstMasked
public DefaultTrafficSelector.Builder matchEthDstMasked(MacAddress addr, MacAddress mask)
Description copied from interface:TrafficSelector.Builder
Matches a l2 dst address with mask.- Specified by:
matchEthDstMasked
in interfaceTrafficSelector.Builder
- Parameters:
addr
- a l2 addressmask
- a mask for an l2 address- Returns:
- a selection builder
-
matchEthSrc
public DefaultTrafficSelector.Builder matchEthSrc(MacAddress addr)
Description copied from interface:TrafficSelector.Builder
Matches a l2 src address.- Specified by:
matchEthSrc
in interfaceTrafficSelector.Builder
- Parameters:
addr
- a l2 address- Returns:
- a selection builder
-
matchEthSrcMasked
public DefaultTrafficSelector.Builder matchEthSrcMasked(MacAddress addr, MacAddress mask)
Description copied from interface:TrafficSelector.Builder
Matches a l2 src address with mask.- Specified by:
matchEthSrcMasked
in interfaceTrafficSelector.Builder
- Parameters:
addr
- a l2 addressmask
- a mask for an l2 address- Returns:
- a selection builder
-
matchEthType
public DefaultTrafficSelector.Builder matchEthType(short ethType)
Description copied from interface:TrafficSelector.Builder
Matches the ethernet type.- Specified by:
matchEthType
in interfaceTrafficSelector.Builder
- Parameters:
ethType
- an ethernet type- Returns:
- a selection builder
-
matchVlanId
public DefaultTrafficSelector.Builder matchVlanId(VlanId vlanId)
Description copied from interface:TrafficSelector.Builder
Matches the vlan id.- Specified by:
matchVlanId
in interfaceTrafficSelector.Builder
- Parameters:
vlanId
- a vlan id- Returns:
- a selection builder
-
matchVlanPcp
public DefaultTrafficSelector.Builder matchVlanPcp(byte vlanPcp)
Description copied from interface:TrafficSelector.Builder
Matches a vlan priority.- Specified by:
matchVlanPcp
in interfaceTrafficSelector.Builder
- Parameters:
vlanPcp
- a vlan priority- Returns:
- a selection builder
-
matchInnerVlanId
public DefaultTrafficSelector.Builder matchInnerVlanId(VlanId vlanId)
Description copied from interface:TrafficSelector.Builder
Matches the inner vlan id.- Specified by:
matchInnerVlanId
in interfaceTrafficSelector.Builder
- Parameters:
vlanId
- a vlan id- Returns:
- a selection builder
-
matchInnerVlanPcp
public DefaultTrafficSelector.Builder matchInnerVlanPcp(byte vlanPcp)
Description copied from interface:TrafficSelector.Builder
Matches a vlan priority.- Specified by:
matchInnerVlanPcp
in interfaceTrafficSelector.Builder
- Parameters:
vlanPcp
- a vlan priority- Returns:
- a selection builder
-
matchIPDscp
public DefaultTrafficSelector.Builder matchIPDscp(byte ipDscp)
Description copied from interface:TrafficSelector.Builder
Matches an IP DSCP (6 bits in ToS field).- Specified by:
matchIPDscp
in interfaceTrafficSelector.Builder
- Parameters:
ipDscp
- an IP DSCP value- Returns:
- a selection builder
-
matchIPEcn
public DefaultTrafficSelector.Builder matchIPEcn(byte ipEcn)
Description copied from interface:TrafficSelector.Builder
Matches an IP ECN (2 bits in ToS field).- Specified by:
matchIPEcn
in interfaceTrafficSelector.Builder
- Parameters:
ipEcn
- an IP ECN value- Returns:
- a selection builder
-
matchIPProtocol
public DefaultTrafficSelector.Builder matchIPProtocol(byte proto)
Description copied from interface:TrafficSelector.Builder
Matches the l3 protocol.- Specified by:
matchIPProtocol
in interfaceTrafficSelector.Builder
- Parameters:
proto
- a l3 protocol- Returns:
- a selection builder
-
matchIPSrc
public DefaultTrafficSelector.Builder matchIPSrc(IpPrefix ip)
Description copied from interface:TrafficSelector.Builder
Matches a l3 IPv4 address.- Specified by:
matchIPSrc
in interfaceTrafficSelector.Builder
- Parameters:
ip
- a l3 address- Returns:
- a selection builder
-
matchIPDst
public DefaultTrafficSelector.Builder matchIPDst(IpPrefix ip)
Description copied from interface:TrafficSelector.Builder
Matches a l3 IPv4 address.- Specified by:
matchIPDst
in interfaceTrafficSelector.Builder
- Parameters:
ip
- a l3 address- Returns:
- a selection builder
-
matchTcpSrc
public DefaultTrafficSelector.Builder matchTcpSrc(TpPort tcpPort)
Description copied from interface:TrafficSelector.Builder
Matches a TCP source port number.- Specified by:
matchTcpSrc
in interfaceTrafficSelector.Builder
- Parameters:
tcpPort
- a TCP source port number- Returns:
- a selection builder
-
matchTcpSrcMasked
public TrafficSelector.Builder matchTcpSrcMasked(TpPort tcpPort, TpPort mask)
Description copied from interface:TrafficSelector.Builder
Matches a TCP source port number with mask.- Specified by:
matchTcpSrcMasked
in interfaceTrafficSelector.Builder
- Parameters:
tcpPort
- a TCP source port numbermask
- a mask for a TCP source port number- Returns:
- a selection builder
-
matchTcpDst
public DefaultTrafficSelector.Builder matchTcpDst(TpPort tcpPort)
Description copied from interface:TrafficSelector.Builder
Matches a TCP destination port number.- Specified by:
matchTcpDst
in interfaceTrafficSelector.Builder
- Parameters:
tcpPort
- a TCP destination port number- Returns:
- a selection builder
-
matchTcpDstMasked
public TrafficSelector.Builder matchTcpDstMasked(TpPort tcpPort, TpPort mask)
Description copied from interface:TrafficSelector.Builder
Matches a TCP destination port number with mask.- Specified by:
matchTcpDstMasked
in interfaceTrafficSelector.Builder
- Parameters:
tcpPort
- a TCP destination port numbermask
- a mask for a TCP destination port number- Returns:
- a selection builder
-
matchUdpSrc
public DefaultTrafficSelector.Builder matchUdpSrc(TpPort udpPort)
Description copied from interface:TrafficSelector.Builder
Matches an UDP source port number.- Specified by:
matchUdpSrc
in interfaceTrafficSelector.Builder
- Parameters:
udpPort
- an UDP source port number- Returns:
- a selection builder
-
matchUdpSrcMasked
public TrafficSelector.Builder matchUdpSrcMasked(TpPort udpPort, TpPort mask)
Description copied from interface:TrafficSelector.Builder
Matches a UDP source port number with mask.- Specified by:
matchUdpSrcMasked
in interfaceTrafficSelector.Builder
- Parameters:
udpPort
- a UDP source port numbermask
- a mask for a UDP source port number- Returns:
- a selection builder
-
matchUdpDst
public DefaultTrafficSelector.Builder matchUdpDst(TpPort udpPort)
Description copied from interface:TrafficSelector.Builder
Matches an UDP destination port number.- Specified by:
matchUdpDst
in interfaceTrafficSelector.Builder
- Parameters:
udpPort
- an UDP destination port number- Returns:
- a selection builder
-
matchUdpDstMasked
public TrafficSelector.Builder matchUdpDstMasked(TpPort udpPort, TpPort mask)
Description copied from interface:TrafficSelector.Builder
Matches a UDP destination port number with mask.- Specified by:
matchUdpDstMasked
in interfaceTrafficSelector.Builder
- Parameters:
udpPort
- a UDP destination port numbermask
- a mask for a UDP destination port number- Returns:
- a selection builder
-
matchSctpSrc
public DefaultTrafficSelector.Builder matchSctpSrc(TpPort sctpPort)
Description copied from interface:TrafficSelector.Builder
Matches a SCTP source port number.- Specified by:
matchSctpSrc
in interfaceTrafficSelector.Builder
- Parameters:
sctpPort
- a SCTP source port number- Returns:
- a selection builder
-
matchSctpSrcMasked
public TrafficSelector.Builder matchSctpSrcMasked(TpPort sctpPort, TpPort mask)
Description copied from interface:TrafficSelector.Builder
Matches a SCTP source port number with mask.- Specified by:
matchSctpSrcMasked
in interfaceTrafficSelector.Builder
- Parameters:
sctpPort
- a SCTP source port numbermask
- a mask for a SCTP source port number- Returns:
- a selection builder
-
matchSctpDst
public DefaultTrafficSelector.Builder matchSctpDst(TpPort sctpPort)
Description copied from interface:TrafficSelector.Builder
Matches a SCTP destination port number.- Specified by:
matchSctpDst
in interfaceTrafficSelector.Builder
- Parameters:
sctpPort
- a SCTP destination port number- Returns:
- a selection builder
-
matchSctpDstMasked
public TrafficSelector.Builder matchSctpDstMasked(TpPort sctpPort, TpPort mask)
Description copied from interface:TrafficSelector.Builder
Matches a SCTP destination port number with mask.- Specified by:
matchSctpDstMasked
in interfaceTrafficSelector.Builder
- Parameters:
sctpPort
- a SCTP destination port numbermask
- a mask for a SCTP destination port number- Returns:
- a selection builder
-
matchIcmpType
public DefaultTrafficSelector.Builder matchIcmpType(byte icmpType)
Description copied from interface:TrafficSelector.Builder
Matches an ICMP type.- Specified by:
matchIcmpType
in interfaceTrafficSelector.Builder
- Parameters:
icmpType
- an ICMP type- Returns:
- a selection builder
-
matchIcmpCode
public DefaultTrafficSelector.Builder matchIcmpCode(byte icmpCode)
Description copied from interface:TrafficSelector.Builder
Matches an ICMP code.- Specified by:
matchIcmpCode
in interfaceTrafficSelector.Builder
- Parameters:
icmpCode
- an ICMP code- Returns:
- a selection builder
-
matchIPv6Src
public DefaultTrafficSelector.Builder matchIPv6Src(IpPrefix ip)
Description copied from interface:TrafficSelector.Builder
Matches a l3 IPv6 address.- Specified by:
matchIPv6Src
in interfaceTrafficSelector.Builder
- Parameters:
ip
- a l3 IPv6 address- Returns:
- a selection builder
-
matchIPv6Dst
public DefaultTrafficSelector.Builder matchIPv6Dst(IpPrefix ip)
Description copied from interface:TrafficSelector.Builder
Matches a l3 IPv6 address.- Specified by:
matchIPv6Dst
in interfaceTrafficSelector.Builder
- Parameters:
ip
- a l3 IPv6 address- Returns:
- a selection builder
-
matchIPv6FlowLabel
public DefaultTrafficSelector.Builder matchIPv6FlowLabel(int flowLabel)
Description copied from interface:TrafficSelector.Builder
Matches an IPv6 flow label.- Specified by:
matchIPv6FlowLabel
in interfaceTrafficSelector.Builder
- Parameters:
flowLabel
- an IPv6 flow label- Returns:
- a selection builder
-
matchIcmpv6Type
public DefaultTrafficSelector.Builder matchIcmpv6Type(byte icmpv6Type)
Description copied from interface:TrafficSelector.Builder
Matches an ICMPv6 type.- Specified by:
matchIcmpv6Type
in interfaceTrafficSelector.Builder
- Parameters:
icmpv6Type
- an ICMPv6 type- Returns:
- a selection builder
-
matchIcmpv6Code
public DefaultTrafficSelector.Builder matchIcmpv6Code(byte icmpv6Code)
Description copied from interface:TrafficSelector.Builder
Matches an ICMPv6 code.- Specified by:
matchIcmpv6Code
in interfaceTrafficSelector.Builder
- Parameters:
icmpv6Code
- an ICMPv6 code- Returns:
- a selection builder
-
matchIPv6NDTargetAddress
public DefaultTrafficSelector.Builder matchIPv6NDTargetAddress(Ip6Address targetAddress)
Description copied from interface:TrafficSelector.Builder
Matches an IPv6 Neighbor Discovery target address.- Specified by:
matchIPv6NDTargetAddress
in interfaceTrafficSelector.Builder
- Parameters:
targetAddress
- an IPv6 Neighbor Discovery target address- Returns:
- a selection builder
-
matchIPv6NDSourceLinkLayerAddress
public DefaultTrafficSelector.Builder matchIPv6NDSourceLinkLayerAddress(MacAddress mac)
Description copied from interface:TrafficSelector.Builder
Matches an IPv6 Neighbor Discovery source link-layer address.- Specified by:
matchIPv6NDSourceLinkLayerAddress
in interfaceTrafficSelector.Builder
- Parameters:
mac
- an IPv6 Neighbor Discovery source link-layer address- Returns:
- a selection builder
-
matchIPv6NDTargetLinkLayerAddress
public DefaultTrafficSelector.Builder matchIPv6NDTargetLinkLayerAddress(MacAddress mac)
Description copied from interface:TrafficSelector.Builder
Matches an IPv6 Neighbor Discovery target link-layer address.- Specified by:
matchIPv6NDTargetLinkLayerAddress
in interfaceTrafficSelector.Builder
- Parameters:
mac
- an IPv6 Neighbor Discovery target link-layer address- Returns:
- a selection builder
-
matchMplsLabel
public DefaultTrafficSelector.Builder matchMplsLabel(MplsLabel mplsLabel)
Description copied from interface:TrafficSelector.Builder
Matches on a MPLS label.- Specified by:
matchMplsLabel
in interfaceTrafficSelector.Builder
- Parameters:
mplsLabel
- a MPLS label.- Returns:
- a selection builder
-
matchMplsBos
public DefaultTrafficSelector.Builder matchMplsBos(boolean mplsBos)
Description copied from interface:TrafficSelector.Builder
Matches on a MPLS Bottom-of-Stack indicator bit.- Specified by:
matchMplsBos
in interfaceTrafficSelector.Builder
- Parameters:
mplsBos
- boolean value indicating BOS=1 (true) or BOS=0 (false).- Returns:
- a selection builder
-
matchTunnelId
public TrafficSelector.Builder matchTunnelId(long tunnelId)
Description copied from interface:TrafficSelector.Builder
Matches a tunnel id.- Specified by:
matchTunnelId
in interfaceTrafficSelector.Builder
- Parameters:
tunnelId
- a tunnel id- Returns:
- a selection builder
-
matchIPv6ExthdrFlags
public DefaultTrafficSelector.Builder matchIPv6ExthdrFlags(short exthdrFlags)
Description copied from interface:TrafficSelector.Builder
Matches on IPv6 Extension Header pseudo-field flags.- Specified by:
matchIPv6ExthdrFlags
in interfaceTrafficSelector.Builder
- Parameters:
exthdrFlags
- the IPv6 Extension Header pseudo-field flags- Returns:
- a selection builder
-
matchArpTpa
public DefaultTrafficSelector.Builder matchArpTpa(Ip4Address addr)
Description copied from interface:TrafficSelector.Builder
Matches a arp IPv4 destination address.- Specified by:
matchArpTpa
in interfaceTrafficSelector.Builder
- Parameters:
addr
- a arp IPv4 destination address- Returns:
- a selection builder
-
matchArpSpa
public DefaultTrafficSelector.Builder matchArpSpa(Ip4Address addr)
Description copied from interface:TrafficSelector.Builder
Matches a arp IPv4 source address.- Specified by:
matchArpSpa
in interfaceTrafficSelector.Builder
- Parameters:
addr
- a arp IPv4 source address- Returns:
- a selection builder
-
matchArpTha
public DefaultTrafficSelector.Builder matchArpTha(MacAddress addr)
Description copied from interface:TrafficSelector.Builder
Matches a arp_eth_dst address.- Specified by:
matchArpTha
in interfaceTrafficSelector.Builder
- Parameters:
addr
- a arp_eth_dst address- Returns:
- a selection builder
-
matchArpSha
public DefaultTrafficSelector.Builder matchArpSha(MacAddress addr)
Description copied from interface:TrafficSelector.Builder
Matches a arp_eth_src address.- Specified by:
matchArpSha
in interfaceTrafficSelector.Builder
- Parameters:
addr
- a arp_eth_src address- Returns:
- a selection builder
-
matchArpOp
public DefaultTrafficSelector.Builder matchArpOp(int arpOp)
Description copied from interface:TrafficSelector.Builder
Matches a arp operation type.- Specified by:
matchArpOp
in interfaceTrafficSelector.Builder
- Parameters:
arpOp
- a arp operation type- Returns:
- a selection builder
-
matchPi
public DefaultTrafficSelector.Builder matchPi(PiCriterion piCriterion)
Description copied from interface:TrafficSelector.Builder
Matches protocol independent fields.- Specified by:
matchPi
in interfaceTrafficSelector.Builder
- Parameters:
piCriterion
- protocol-independent criterion- Returns:
- a selection builder
-
extension
public TrafficSelector.Builder extension(ExtensionSelector extensionSelector, DeviceId deviceId)
Description copied from interface:TrafficSelector.Builder
Uses an extension selector.- Specified by:
extension
in interfaceTrafficSelector.Builder
- Parameters:
extensionSelector
- extension selectordeviceId
- device ID- Returns:
- a selection builder
-
build
public TrafficSelector build()
Description copied from interface:TrafficSelector.Builder
Builds an immutable traffic selector.- Specified by:
build
in interfaceTrafficSelector.Builder
- Returns:
- traffic selector
-
-