All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<InterfaceSwitchingCapabilities>, org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<SrlgAttributes>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, org.opendaylight.yangtools.yang.binding.KeyAware<InterfaceSwitchingCapabilitiesKey>

@Generated("mdsal-binding-generator") public interface InterfaceSwitchingCapabilities extends org.opendaylight.yangtools.yang.binding.ChildOf<SrlgAttributes>, org.opendaylight.yangtools.yang.binding.Augmentable<InterfaceSwitchingCapabilities>, org.opendaylight.yangtools.yang.binding.KeyAware<InterfaceSwitchingCapabilitiesKey>
List of interface capabilities for this interface

This class represents the following YANG schema fragment defined in module ted

 list interface-switching-capabilities {
   key switching-capability;
   leaf switching-capability {
     type ted:switching-capabilities;
   }
   leaf encoding {
     type uint8;
   }
   list max-lsp-bandwidth {
     max-elements 8;
     key priority;
     leaf priority {
       type uint8 {
         range 0..7;
       }
     }
     leaf bandwidth {
       type decimal64 {
         fraction-digits 2;
       }
     }
   }
   container packet-switch-capable {
     when "../switching-capability = PSC-1 or ../switching-capability = PSC-2 or ../switching-capability = PSC-3 or ../switching-capability = PSC-4";
     leaf minimum-lsp-bandwidth {
       type decimal64 {
         fraction-digits 2;
       }
     }
     leaf interface-mtu {
       type uint16;
     }
   }
   container time-division-multiplex-capable {
     when "../switching-capability = TDM";
     leaf minimum-lsp-bandwidth {
       type decimal64 {
         fraction-digits 2;
       }
     }
     leaf indication {
       type uint16;
     }
   }
 }
 

To create instances of this class use InterfaceSwitchingCapabilitiesBuilder.

See Also:
  • 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

      default Class<InterfaceSwitchingCapabilities> 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
    • bindingHashCode

      static int bindingHashCode(@NonNull InterfaceSwitchingCapabilities obj)
      Default implementation of Object.hashCode() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.
      Parameters:
      obj - Object for which to generate hashCode() result.
      Returns:
      Hash code value of data modeled by this interface.
      Throws:
      NullPointerException - if obj is null
    • bindingEquals

      static boolean bindingEquals(@NonNull InterfaceSwitchingCapabilities thisObj, Object obj)
      Default implementation of Object.equals(Object) contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.
      Parameters:
      thisObj - Object acting as the receiver of equals invocation
      obj - Object acting as argument to equals invocation
      Returns:
      True if thisObj and obj are considered equal
      Throws:
      NullPointerException - if thisObj is null
    • bindingToString

      static String bindingToString(@NonNull InterfaceSwitchingCapabilities obj)
      Default implementation of Object.toString() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.
      Parameters:
      obj - Object for which to generate toString() result.
      Returns:
      String value of data modeled by this interface.
      Throws:
      NullPointerException - if obj is null
    • key

      Specified by:
      key in interface org.opendaylight.yangtools.yang.binding.KeyAware<InterfaceSwitchingCapabilitiesKey>
    • getSwitchingCapability

      SwitchingCapabilities getSwitchingCapability()
      Return switchingCapability, or null if it is not present.
           
               Switching Capability for this interface
           
       
      Returns:
      SwitchingCapabilities switchingCapability, or null if it is not present.
    • requireSwitchingCapability

      default @NonNull SwitchingCapabilities requireSwitchingCapability()
      Return switchingCapability, guaranteed to be non-null.
           
               Switching Capability for this interface
           
       
      Returns:
      SwitchingCapabilities switchingCapability, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if switchingCapability is not present
    • getEncoding

      org.opendaylight.yangtools.yang.common.Uint8 getEncoding()
      Return encoding, or null if it is not present.
           
               Encoding supported by this interface
           
       
      Returns:
      Uint8 encoding, or null if it is not present.
    • requireEncoding

      default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireEncoding()
      Return encoding, guaranteed to be non-null.
           
               Encoding supported by this interface
           
       
      Returns:
      Uint8 encoding, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if encoding is not present
    • getMaxLspBandwidth

      @Nullable Map<MaxLspBandwidthKey,MaxLspBandwidth> getMaxLspBandwidth()
      Return maxLspBandwidth, or null if it is not present.
           
               Maximum LSP Bandwidth at priorities 0-7
           
       
      Returns:
      Map<MaxLspBandwidthKey, MaxLspBandwidth> maxLspBandwidth, or null if it is not present.
    • nonnullMaxLspBandwidth

      default @NonNull Map<MaxLspBandwidthKey,MaxLspBandwidth> nonnullMaxLspBandwidth()
      Return maxLspBandwidth, or an empty list if it is not present.
      Returns:
      Map<MaxLspBandwidthKey, MaxLspBandwidth> maxLspBandwidth, or an empty list if it is not present.
    • getPacketSwitchCapable

      PacketSwitchCapable getPacketSwitchCapable()
      Return packetSwitchCapable, or null if it is not present.
           
               Interface has packet-switching capabilities
           
       
      Returns:
      PacketSwitchCapable packetSwitchCapable, or null if it is not present.
    • nonnullPacketSwitchCapable

      @NonNull PacketSwitchCapable nonnullPacketSwitchCapable()
      Return packetSwitchCapable, or an empty instance if it is not present.
      Returns:
      PacketSwitchCapable packetSwitchCapable, or an empty instance if it is not present.
    • getTimeDivisionMultiplexCapable

      TimeDivisionMultiplexCapable getTimeDivisionMultiplexCapable()
      Return timeDivisionMultiplexCapable, or null if it is not present.
           
               Interface has time-division multiplex capabilities
           
       
      Returns:
      TimeDivisionMultiplexCapable timeDivisionMultiplexCapable, or null if it is not present.
    • nonnullTimeDivisionMultiplexCapable

      @NonNull TimeDivisionMultiplexCapable nonnullTimeDivisionMultiplexCapable()
      Return timeDivisionMultiplexCapable, or an empty instance if it is not present.
      Returns:
      TimeDivisionMultiplexCapable timeDivisionMultiplexCapable, or an empty instance if it is not present.