Interface InterfaceCommonState
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
State,State,SubinterfacesState
@Generated("mdsal-binding-generator") public interface InterfaceCommonState extends org.opendaylight.yangtools.yang.binding.DataObject
Operational state data (in addition to intended configuration) at the global level for this interfaceThis class represents the following YANG schema fragment defined in module openconfig-interfaces
grouping interface-common-state { oc-ext:operational; leaf ifindex { type uint32; oc-ext:telemetry-on-change; } leaf admin-status { type enumeration { enum UP { } enum DOWN { } enum TESTING { } } oc-ext:telemetry-on-change; } leaf oper-status { type enumeration { enum UP { value 1; } enum DOWN { value 2; } enum TESTING { value 3; } enum UNKNOWN { value 4; } enum DORMANT { value 5; } enum NOT_PRESENT { value 6; } enum LOWER_LAYER_DOWN { value 7; } } oc-ext:telemetry-on-change; } leaf last-change { type oc-types:timeticks64; oc-ext:telemetry-on-change; } leaf logical { type boolean; oc-ext:telemetry-on-change; } leaf management { type boolean; oc-ext:telemetry-on-change; } leaf cpu { type boolean; oc-ext:telemetry-on-change; } }
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInterfaceCommonState.AdminStatusstatic classInterfaceCommonState.OperStatus
-
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 Modifier and Type Method Description InterfaceCommonState.AdminStatusgetAdminStatus()Return adminStatus, ornullif it is not present.BooleangetCpu()Return cpu, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32getIfindex()Return ifindex, ornullif it is not present.Timeticks64getLastChange()Return lastChange, ornullif it is not present.BooleangetLogical()Return logical, ornullif it is not present.BooleangetManagement()Return management, ornullif it is not present.InterfaceCommonState.OperStatusgetOperStatus()Return operStatus, ornullif it is not present.Class<? extends InterfaceCommonState>implementedInterface()default @NonNull InterfaceCommonState.AdminStatusrequireAdminStatus()Return adminStatus, guaranteed to be non-null.default @NonNull BooleanrequireCpu()Return cpu, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32requireIfindex()Return ifindex, guaranteed to be non-null.default @NonNull Timeticks64requireLastChange()Return lastChange, guaranteed to be non-null.default @NonNull BooleanrequireLogical()Return logical, guaranteed to be non-null.default @NonNull BooleanrequireManagement()Return management, guaranteed to be non-null.default @NonNull InterfaceCommonState.OperStatusrequireOperStatus()Return operStatus, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends InterfaceCommonState> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getIfindex
org.opendaylight.yangtools.yang.common.Uint32 getIfindex()
Return ifindex, ornullif it is not present.System assigned number for each interface. Corresponds to ifIndex object in SNMP Interface MIB- Returns:
Uint32ifindex, ornullif it is not present.
-
requireIfindex
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireIfindex()
Return ifindex, guaranteed to be non-null.System assigned number for each interface. Corresponds to ifIndex object in SNMP Interface MIB- Returns:
Uint32ifindex, guaranteed to be non-null.- Throws:
NoSuchElementException- if ifindex is not present
-
getAdminStatus
InterfaceCommonState.AdminStatus getAdminStatus()
Return adminStatus, ornullif it is not present.The desired state of the interface. In RFC 7223 this leaf has the same read semantics as ifAdminStatus. Here, it reflects the administrative state as set by enabling or disabling the interface.- Returns:
AdminStatusadminStatus, ornullif it is not present.
-
requireAdminStatus
default @NonNull InterfaceCommonState.AdminStatus requireAdminStatus()
Return adminStatus, guaranteed to be non-null.The desired state of the interface. In RFC 7223 this leaf has the same read semantics as ifAdminStatus. Here, it reflects the administrative state as set by enabling or disabling the interface.- Returns:
AdminStatusadminStatus, guaranteed to be non-null.- Throws:
NoSuchElementException- if adminStatus is not present
-
getOperStatus
InterfaceCommonState.OperStatus getOperStatus()
Return operStatus, ornullif it is not present.The current operational state of the interface. This leaf has the same semantics as ifOperStatus.- Returns:
OperStatusoperStatus, ornullif it is not present.
-
requireOperStatus
default @NonNull InterfaceCommonState.OperStatus requireOperStatus()
Return operStatus, guaranteed to be non-null.The current operational state of the interface. This leaf has the same semantics as ifOperStatus.- Returns:
OperStatusoperStatus, guaranteed to be non-null.- Throws:
NoSuchElementException- if operStatus is not present
-
getLastChange
Timeticks64 getLastChange()
Return lastChange, ornullif it is not present.This timestamp indicates the absolute time of the last state change of the interface (e.g., up-to-down transition). This is different than the SNMP ifLastChange object in the standard interface MIB in that it is not relative to the system boot time (i.e,. sysUpTime). The value is the timestamp in nanoseconds relative to the Unix Epoch (Jan 1, 1970 00:00:00 UTC).- Returns:
Timeticks64lastChange, ornullif it is not present.
-
requireLastChange
default @NonNull Timeticks64 requireLastChange()
Return lastChange, guaranteed to be non-null.This timestamp indicates the absolute time of the last state change of the interface (e.g., up-to-down transition). This is different than the SNMP ifLastChange object in the standard interface MIB in that it is not relative to the system boot time (i.e,. sysUpTime). The value is the timestamp in nanoseconds relative to the Unix Epoch (Jan 1, 1970 00:00:00 UTC).- Returns:
Timeticks64lastChange, guaranteed to be non-null.- Throws:
NoSuchElementException- if lastChange is not present
-
getLogical
Boolean getLogical()
Return logical, ornullif it is not present.When set to true, the interface is a logical interface which does not have an associated physical port or channel on the system.- Returns:
Booleanlogical, ornullif it is not present.
-
requireLogical
default @NonNull Boolean requireLogical()
Return logical, guaranteed to be non-null.When set to true, the interface is a logical interface which does not have an associated physical port or channel on the system.- Returns:
Booleanlogical, guaranteed to be non-null.- Throws:
NoSuchElementException- if logical is not present
-
getManagement
Boolean getManagement()
Return management, ornullif it is not present.When set to true, the interface is a dedicated management interface that is not connected to dataplane interfaces. It may be used to connect the system to an out-of-band management network, for example.- Returns:
Booleanmanagement, ornullif it is not present.
-
requireManagement
default @NonNull Boolean requireManagement()
Return management, guaranteed to be non-null.When set to true, the interface is a dedicated management interface that is not connected to dataplane interfaces. It may be used to connect the system to an out-of-band management network, for example.- Returns:
Booleanmanagement, guaranteed to be non-null.- Throws:
NoSuchElementException- if management is not present
-
getCpu
Boolean getCpu()
Return cpu, ornullif it is not present.When set to true, the interface is for traffic that is handled by the system CPU, sometimes also called the control plane interface. On systems that represent the CPU interface as an Ethernet interface, for example, this leaf should be used to distinguish the CPU interface from dataplane interfaces.- Returns:
Booleancpu, ornullif it is not present.
-
requireCpu
default @NonNull Boolean requireCpu()
Return cpu, guaranteed to be non-null.When set to true, the interface is for traffic that is handled by the system CPU, sometimes also called the control plane interface. On systems that represent the CPU interface as an Ethernet interface, for example, this leaf should be used to distinguish the CPU interface from dataplane interfaces.- Returns:
Booleancpu, guaranteed to be non-null.- Throws:
NoSuchElementException- if cpu is not present
-
-