Interface VlanMatchFields
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
VlanMatch
@Generated("mdsal-binding-generator")
public interface VlanMatchFields
extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module opendaylight-match-types
grouping vlan-match-fields { container vlan-id { presence "Match field is active and set"; leaf vlan-id-present { type boolean; } leaf vlan-id { type l2t:vlan-id; } } leaf vlan-pcp { type l2t:vlan-pcp; } }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn vlanId, ornull
if it is not present.org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp
Return vlanPcp, ornull
if it is not present.Class<? extends VlanMatchFields>
default @NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp
Return vlanPcp, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends VlanMatchFields> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getVlanId
VlanId getVlanId()Return vlanId, ornull
if it is not present.VLAN id.
- Returns:
VlanId
vlanId, ornull
if it is not present.
-
getVlanPcp
org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp getVlanPcp()Return vlanPcp, ornull
if it is not present.VLAN priority.
- Returns:
VlanPcp
vlanPcp, ornull
if it is not present.
-
requireVlanPcp
default @NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp requireVlanPcp()Return vlanPcp, guaranteed to be non-null.VLAN priority.
- Returns:
VlanPcp
vlanPcp, guaranteed to be non-null.- Throws:
NoSuchElementException
- if vlanPcp is not present
-