Interface VlanLogicalConfig
-
- All Superinterfaces:
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 Modifier and Type Interface Description static classVlanLogicalConfig.VlanIdDeprecated.
-
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 Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description VlanLogicalConfig.VlanIdgetVlanId()Deprecated.Class<? extends VlanLogicalConfig>implementedInterface()default @NonNull VlanLogicalConfig.VlanIdrequireVlanId()Return vlanId, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends VlanLogicalConfig> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getVlanId
@Deprecated VlanLogicalConfig.VlanId 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
default @NonNull VlanLogicalConfig.VlanId 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
-
-