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
All Known Subinterfaces:
Config, State

@Generated("mdsal-binding-generator") public interface InterfacePhysConfig extends org.opendaylight.yangtools.yang.binding.DataObject, InterfaceCommonConfig
Configuration data for physical interfaces

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

 grouping interface-phys-config {
   leaf type {
     type identityref {
       base interface-type;
     }
   }
   leaf mtu {
     type uint16;
   }
   uses interface-common-config;
 }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yangtools.yang.common.Uint16
    Return mtu, or null if it is not present.
    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev180220.InterfaceType
    Return type, or null if it is not present.
     
    default @NonNull org.opendaylight.yangtools.yang.common.Uint16
    Return mtu, guaranteed to be non-null.
    default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev180220.InterfaceType
    Return type, 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 QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends InterfacePhysConfig> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      Specified by:
      implementedInterface in interface InterfaceCommonConfig
    • getType

      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev180220.InterfaceType getType()
      Return type, or null if it is not present.
           
               [adapted from IETF interfaces model (RFC 7223)] The type of the interface. When
               an interface entry is created, a server MAY initialize the type leaf with a
               valid value, e.g., if it is possible to derive the type from the name of the
               interface. If a client tries to set the type of an interface to a value that can
               never be used by the system, e.g., if the type is not supported or if the type
               does not match the name of the interface, the server MUST reject the request. A
               NETCONF server MUST reply with an rpc-error with the error-tag 'invalid-value'
               in this case.
           
       
      Returns:
      InterfaceType type, or null if it is not present.
    • requireType

      default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev180220.InterfaceType requireType()
      Return type, guaranteed to be non-null.
           
               [adapted from IETF interfaces model (RFC 7223)] The type of the interface. When
               an interface entry is created, a server MAY initialize the type leaf with a
               valid value, e.g., if it is possible to derive the type from the name of the
               interface. If a client tries to set the type of an interface to a value that can
               never be used by the system, e.g., if the type is not supported or if the type
               does not match the name of the interface, the server MUST reject the request. A
               NETCONF server MUST reply with an rpc-error with the error-tag 'invalid-value'
               in this case.
           
       
      Returns:
      InterfaceType type, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if type is not present
    • getMtu

      org.opendaylight.yangtools.yang.common.Uint16 getMtu()
      Return mtu, or null if it is not present.
           
               Set the max transmission unit size in octets for the physical interface. If this
               is not set, the mtu is set to the operational default -- e.g., 1514 bytes on an
               Ethernet interface.
           
       
      Returns:
      Uint16 mtu, or null if it is not present.
    • requireMtu

      default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireMtu()
      Return mtu, guaranteed to be non-null.
           
               Set the max transmission unit size in octets for the physical interface. If this
               is not set, the mtu is set to the operational default -- e.g., 1514 bytes on an
               Ethernet interface.
           
       
      Returns:
      Uint16 mtu, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if mtu is not present