Interface Subinterface

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<Subinterface>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<Subinterfaces>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, org.opendaylight.yangtools.yang.binding.Identifiable<SubinterfaceKey>

    public interface Subinterface
    extends org.opendaylight.yangtools.yang.binding.ChildOf<Subinterfaces>, org.opendaylight.yangtools.yang.binding.Augmentable<Subinterface>, org.opendaylight.yangtools.yang.binding.Identifiable<SubinterfaceKey>
    The list of subinterfaces (logical interfaces) associated with a physical interface

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

     list subinterface {
       key index;
       leaf index {
         type leafref {
           path ../oc-if:config/oc-if:index;
         }
       }
       container config {
         uses subinterfaces-config;
       }
       container state {
         config false;
         uses subinterfaces-config;
         uses subinterfaces-state;
       }
     }
     
    The schema path to identify an instance is openconfig-interfaces/subinterfaces-top/subinterfaces/subinterface

    To create instances of this class use SubinterfaceBuilder.

    See Also:
    SubinterfaceBuilder, SubinterfaceKey
    • Field Detail

      • QNAME

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

      • implementedInterface

        default Class<Subinterface> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getIndex

        @Nullable org.opendaylight.yangtools.yang.common.Uint32 getIndex()
        The index number of the subinterface -- used to address the logical interface
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 index, or null if not present
      • getConfig

        @Nullable Config getConfig()
        Configurable items at the subinterface level
        Returns:
        org.opendaylight.yang.gen.v1.http.openconfig.net.yang.interfaces.rev160412.subinterfaces.top.subinterfaces.subinterface.Config config, or null if not present
      • getState

        @Nullable State getState()
        Operational state data for logical interfaces
        Returns:
        org.opendaylight.yang.gen.v1.http.openconfig.net.yang.interfaces.rev160412.subinterfaces.top.subinterfaces.subinterface.State state, or null if not present