Interface VlanLogicalConfig

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    Config, State

    @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;
       }
     }
     
    The schema path to identify an instance is openconfig-vlanvlan-logical-config
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        Class<? extends VlanLogicalConfig> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getVlanId

        @Deprecated
        VlanLogicalConfig.VlanId getVlanId()
        Deprecated.
        Return vlanId, or null if 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:
        VlanId vlanId, or null if 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:
        VlanId vlanId, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if vlanId is not present