Interface VlanLogicalConfig
- 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
@Generated("mdsal-binding-generator")
public interface VlanLogicalConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
VLAN related configuration that is part of subinterface (logical interface)
configuration. These are generally L3 VLANs with an id that is local or L2
attached with a wire transport service, such as a local cross-connect or an
pseudo-wire. For ingress packets this VLAN configuration is used to match
packets with an interface; for egress packets, the 'single-tagged' and
'double-tagged' containers may be used to specify the VLAN identifiers that are
added to packets as they leave the system.
This class represents the following YANG schema fragment defined in module openconfig-vlan
grouping vlan-logical-config {
leaf vlan-id {
type union {
type oc-vlan-types:vlan-id;
type oc-vlan-types:qinq-id;
}
status deprecated;
}
}
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Class<? extends VlanLogicalConfig>default @NonNull VlanLogicalConfig.VlanIdReturn vlanId, 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 VlanLogicalConfig> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getVlanId
Deprecated.Return vlanId, ornullif it is not present.VLAN id for the subinterface -- specified inline for the case of a local VLAN. The id is scoped to the subinterface, and could be repeated on different subinterfaces. Deprecation note: See adjacent elements in the 'vlan' container for making more expressive VLAN matches.- Returns:
VlanIdvlanId, ornullif it is not present.
-
requireVlanId
Return vlanId, guaranteed to be non-null.VLAN id for the subinterface -- specified inline for the case of a local VLAN. The id is scoped to the subinterface, and could be repeated on different subinterfaces. Deprecation note: See adjacent elements in the 'vlan' container for making more expressive VLAN matches.- Returns:
VlanIdvlanId, guaranteed to be non-null.- Throws:
NoSuchElementException- if vlanId is not present
-