All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>, org.opendaylight.yangtools.binding.BindingObject, org.opendaylight.yangtools.binding.DataContainer, org.opendaylight.yangtools.binding.Grouping
All Known Subinterfaces:
State, State, SubinterfacesState

@Generated("mdsal-binding-generator") public interface InterfaceCommonState extends org.opendaylight.yangtools.binding.Grouping
Operational state data (in addition to intended configuration) at the global level for this interface

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

 grouping interface-common-state {
   leaf ifindex {
     type uint32;
   }
   leaf admin-status {
     type enumeration {
       enum UP {
       }
       enum DOWN {
       }
       enum TESTING {
       }
     }
   }
   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;
       }
     }
   }
   leaf last-change {
     type yang:timeticks;
   }
 }
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    This class represents the following YANG schema fragment defined in module openconfig-interfaces
    static enum 
    This class represents the following YANG schema fragment defined in module openconfig-interfaces
  • Method Summary

    Modifier and Type
    Method
    Description
    Return adminStatus, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint32
    Return ifindex, or null if it is not present.
    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timeticks
    Return lastChange, or null if it is not present.
    Return operStatus, or null if it is not present.
    Return adminStatus, guaranteed to be non-null.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint32
    Return ifindex, guaranteed to be non-null.
    default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timeticks
    Return lastChange, guaranteed to be non-null.
    Return operStatus, guaranteed to be non-null.

    Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract

    implementedInterface
  • Method Details

    • getIfindex

      org.opendaylight.yangtools.yang.common.Uint32 getIfindex()
      Return ifindex, or null if it is not present.
           
               System assigned number for each interface. Corresponds to ifIndex object in SNMP
               Interface MIB
           
       
      Returns:
      Uint32 ifindex, or null if 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:
      Uint32 ifindex, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if ifindex is not present
    • getAdminStatus

      Return adminStatus, or null if it is not present.
           
               [adapted from IETF interfaces model (RFC 7223)] 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:
      AdminStatus adminStatus, or null if it is not present.
    • requireAdminStatus

      default @NonNull InterfaceCommonState.AdminStatus requireAdminStatus()
      Return adminStatus, guaranteed to be non-null.
           
               [adapted from IETF interfaces model (RFC 7223)] 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:
      AdminStatus adminStatus, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if adminStatus is not present
    • getOperStatus

      Return operStatus, or null if it is not present.
           
               [adapted from IETF interfaces model (RFC 7223)] The current operational state of
               the interface. This leaf has the same semantics as ifOperStatus.
           
       
      Returns:
      OperStatus operStatus, or null if it is not present.
    • requireOperStatus

      default @NonNull InterfaceCommonState.OperStatus requireOperStatus()
      Return operStatus, guaranteed to be non-null.
           
               [adapted from IETF interfaces model (RFC 7223)] The current operational state of
               the interface. This leaf has the same semantics as ifOperStatus.
           
       
      Returns:
      OperStatus operStatus, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if operStatus is not present
    • getLastChange

      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timeticks getLastChange()
      Return lastChange, or null if it is not present.
           
               Date and time of the last state change of the interface (e.g., up-to-down
               transition). This corresponds to the ifLastChange object in the standard
               interface MIB.
           
       
      Returns:
      Timeticks lastChange, or null if it is not present.
    • requireLastChange

      default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timeticks requireLastChange()
      Return lastChange, guaranteed to be non-null.
           
               Date and time of the last state change of the interface (e.g., up-to-down
               transition). This corresponds to the ifLastChange object in the standard
               interface MIB.
           
       
      Returns:
      Timeticks lastChange, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if lastChange is not present