Interface VlanMatchFields
-
- All Superinterfaces:
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; } }
The schema path to identify an instance is opendaylight-match-typesvlan-match-fields
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description VlanId
getVlanId()
Return vlanId, ornull
if it is not present.org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp
getVlanPcp()
Return vlanPcp, ornull
if it is not present.Class<? extends VlanMatchFields>
implementedInterface()
default @NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp
requireVlanPcp()
Return vlanPcp, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends VlanMatchFields> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.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
-
-