Interface SubinterfacesConfig
- 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
,InterfaceCommonConfig
@Generated("mdsal-binding-generator")
public interface SubinterfacesConfig
extends org.opendaylight.yangtools.yang.binding.DataObject, InterfaceCommonConfig
Configuration data for subinterfaces
This class represents the following YANG schema fragment defined in module openconfig-interfaces
grouping subinterfaces-config { leaf index { type uint32; default 0; } uses interface-common-config; }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint32
getIndex()
Return index, ornull
if it is not present.Class<? extends SubinterfacesConfig>
default @NonNull org.opendaylight.yangtools.yang.common.Uint32
Return index, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yang.gen.v1.http.openconfig.net.yang.interfaces.rev160412.InterfaceCommonConfig
getDescription, getEnabled, getName, requireDescription, requireEnabled, requireName
-
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 SubinterfacesConfig> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfaceInterfaceCommonConfig
-
getIndex
org.opendaylight.yangtools.yang.common.Uint32 getIndex()Return index, ornull
if it is not present.The index of the subinterface, or logical interface number. On systems with no support for subinterfaces, or not using subinterfaces, this value should default to 0, i.e., the default subinterface.
- Returns:
Uint32
index, ornull
if it is not present.
-
requireIndex
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireIndex()Return index, guaranteed to be non-null.The index of the subinterface, or logical interface number. On systems with no support for subinterfaces, or not using subinterfaces, this value should default to 0, i.e., the default subinterface.
- Returns:
Uint32
index, guaranteed to be non-null.- Throws:
NoSuchElementException
- if index is not present
-