Interface VlanConfig

  • 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 VlanConfig
    extends org.opendaylight.yangtools.yang.binding.DataObject
    VLAN configuration container.

    This class represents the following YANG schema fragment defined in module openconfig-vlan

     grouping vlan-config {
       leaf vlan-id {
         type oc-vlan-types:vlan-id;
       }
       leaf name {
         type string;
       }
       leaf status {
         type enumeration {
           enum ACTIVE {
           }
           enum SUSPENDED {
           }
         }
         default ACTIVE;
       }
     }
     
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
        YANG identifier of the statement represented by this class.
    • Method Detail

      • implementedInterface

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

        VlanId getVlanId()
        Return vlanId, or null if it is not present.
             
                 Interface VLAN id.
             
         
        Returns:
        VlanId vlanId, or null if it is not present.
      • requireVlanId

        default @NonNull VlanId requireVlanId()
        Return vlanId, guaranteed to be non-null.
             
                 Interface VLAN id.
             
         
        Returns:
        VlanId vlanId, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if vlanId is not present
      • getName

        String getName()
        Return name, or null if it is not present.
             
                 Interface VLAN name.
             
         
        Returns:
        String name, or null if it is not present.
      • requireName

        default @NonNull String requireName()
        Return name, guaranteed to be non-null.
             
                 Interface VLAN name.
             
         
        Returns:
        String name, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if name is not present
      • getStatus

        VlanConfig.Status getStatus()
        Return status, or null if it is not present.
             
                 Admin state of the VLAN
             
         
        Returns:
        Status status, or null if it is not present.
      • requireStatus

        default @NonNull VlanConfig.Status requireStatus()
        Return status, guaranteed to be non-null.
             
                 Admin state of the VLAN
             
         
        Returns:
        Status status, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if status is not present