Interface Match
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Match>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.ChildOf<VlanLogicalMatchTop>,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface Match extends org.opendaylight.yangtools.yang.binding.ChildOf<VlanLogicalMatchTop>, org.opendaylight.yangtools.yang.binding.Augmentable<Match>
Configuration for various VLAN tag matching schemes, including single-tagged 802.1q packets and double-tagged 802.1ad 'Q-in-Q' packets. Typically only one the subordinate containers should be specified. Wildcards may be matched by specifying range values of 2-4094. If implementations have a more efficient way to match Wildcards then they should recognize this pattern and translate accordingly. Implementations are expected to return errors for combinations they do not support, or provide deviations to the same effect. For simple VLAN configurations without an 'egress-mapping' then using the 'single-tagged' and 'double-tagged' VLAN matches that resolve to specific values, these specify the VLAN identifiers applied to packets on egress.This class represents the following YANG schema fragment defined in module openconfig-vlan
container match { container single-tagged { container config { uses vlan-logical-single-tagged-config; } container state { config false; uses vlan-logical-single-tagged-config; } } container single-tagged-list { container config { uses vlan-logical-single-tagged-list-config; } container state { config false; uses vlan-logical-single-tagged-list-config; } } container single-tagged-range { container config { uses vlan-logical-single-tagged-range-config; } container state { config false; uses vlan-logical-single-tagged-range-config; } } container double-tagged { container config { uses vlan-logical-double-tagged-config; } container state { config false; uses vlan-logical-double-tagged-config; } } container double-tagged-inner-list { container config { uses vlan-logical-double-tagged-inner-list-config; } container state { config false; uses vlan-logical-double-tagged-inner-list-config; } } container double-tagged-outer-list { container config { uses vlan-logical-double-tagged-outer-list-config; } container state { config false; uses vlan-logical-double-tagged-outer-list-config; } } container double-tagged-inner-range { container config { uses vlan-logical-double-tagged-inner-range-config; } container state { config false; uses vlan-logical-double-tagged-inner-range-config; } } container double-tagged-outer-range { container config { uses vlan-logical-double-tagged-outer-range-config; } container state { config false; uses vlan-logical-double-tagged-outer-range-config; } } container double-tagged-inner-outer-range { container config { uses vlan-logical-double-tagged-inner-outer-range-config; } container state { config false; uses vlan-logical-double-tagged-inner-outer-range-config; } } }To create instances of this class use
MatchBuilder.- See Also:
MatchBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAMEYANG identifier of the statement represented by this class.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static booleanbindingEquals(@NonNull Match thisObj, Object obj)Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull Match obj)Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull Match obj)Default implementation ofObject.toString()contract for this interface.DoubleTaggedgetDoubleTagged()Return doubleTagged, ornullif it is not present.DoubleTaggedInnerListgetDoubleTaggedInnerList()Return doubleTaggedInnerList, ornullif it is not present.DoubleTaggedInnerOuterRangegetDoubleTaggedInnerOuterRange()Return doubleTaggedInnerOuterRange, ornullif it is not present.DoubleTaggedInnerRangegetDoubleTaggedInnerRange()Return doubleTaggedInnerRange, ornullif it is not present.DoubleTaggedOuterListgetDoubleTaggedOuterList()Return doubleTaggedOuterList, ornullif it is not present.DoubleTaggedOuterRangegetDoubleTaggedOuterRange()Return doubleTaggedOuterRange, ornullif it is not present.SingleTaggedgetSingleTagged()Return singleTagged, ornullif it is not present.SingleTaggedListgetSingleTaggedList()Return singleTaggedList, ornullif it is not present.SingleTaggedRangegetSingleTaggedRange()Return singleTaggedRange, ornullif it is not present.default Class<Match>implementedInterface()
-
-
-
Method Detail
-
implementedInterface
default Class<Match> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
static int bindingHashCode(@NonNull Match obj)
Default implementation ofObject.hashCode()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException- ifobjis null
-
bindingEquals
static boolean bindingEquals(@NonNull Match thisObj, Object obj)
Default implementation ofObject.equals(Object)contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj- Object acting as the receiver of equals invocationobj- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException- ifthisObjis null
-
bindingToString
static String bindingToString(@NonNull Match obj)
Default implementation ofObject.toString()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj- Object for which to generate toString() result.- Returns:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjis null
-
getSingleTagged
SingleTagged getSingleTagged()
Return singleTagged, ornullif it is not present.Match single-tagged packets with an exact VLAN identifier.- Returns:
SingleTaggedsingleTagged, ornullif it is not present.
-
getSingleTaggedList
SingleTaggedList getSingleTaggedList()
Return singleTaggedList, ornullif it is not present.Match single-tagged packets with a list of VLAN identifiers.- Returns:
SingleTaggedListsingleTaggedList, ornullif it is not present.
-
getSingleTaggedRange
SingleTaggedRange getSingleTaggedRange()
Return singleTaggedRange, ornullif it is not present.Match single-tagged packets with a range of VLAN identifiers.- Returns:
SingleTaggedRangesingleTaggedRange, ornullif it is not present.
-
getDoubleTagged
DoubleTagged getDoubleTagged()
Return doubleTagged, ornullif it is not present.Match double-tagged packets against inner exact and outer exact VLAN identifiers.- Returns:
DoubleTaggeddoubleTagged, ornullif it is not present.
-
getDoubleTaggedInnerList
DoubleTaggedInnerList getDoubleTaggedInnerList()
Return doubleTaggedInnerList, ornullif it is not present.Match double-tagged packets against an inner list and outer exact VLAN identifiers.- Returns:
DoubleTaggedInnerListdoubleTaggedInnerList, ornullif it is not present.
-
getDoubleTaggedOuterList
DoubleTaggedOuterList getDoubleTaggedOuterList()
Return doubleTaggedOuterList, ornullif it is not present.Match double-tagged packets against an inner exact and outer list of VLAN identifiers.- Returns:
DoubleTaggedOuterListdoubleTaggedOuterList, ornullif it is not present.
-
getDoubleTaggedInnerRange
DoubleTaggedInnerRange getDoubleTaggedInnerRange()
Return doubleTaggedInnerRange, ornullif it is not present.Match double-tagged packets against an inner range and outer exact VLAN identifiers.- Returns:
DoubleTaggedInnerRangedoubleTaggedInnerRange, ornullif it is not present.
-
getDoubleTaggedOuterRange
DoubleTaggedOuterRange getDoubleTaggedOuterRange()
Return doubleTaggedOuterRange, ornullif it is not present.Match double-tagged packets against an inner exact and an outer range of VLAN identifiers.- Returns:
DoubleTaggedOuterRangedoubleTaggedOuterRange, ornullif it is not present.
-
getDoubleTaggedInnerOuterRange
DoubleTaggedInnerOuterRange getDoubleTaggedInnerOuterRange()
Return doubleTaggedInnerOuterRange, ornullif it is not present.Match double-tagged packets against an inner range and an outer range of VLAN identifiers.- Returns:
DoubleTaggedInnerOuterRangedoubleTaggedInnerOuterRange, ornullif it is not present.
-
-