All Superinterfaces:
ActionsGrouping, 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:
BucketsList

@Generated("mdsal-binding-generator") public interface BucketGrouping extends org.opendaylight.yangtools.binding.Grouping, ActionsGrouping
Bucket for use in groups.

This class represents the following YANG schema fragment defined in module openflow-protocol

 grouping bucket-grouping {
   leaf weight {
     type uint16;
   }
   leaf watch-port {
     type oft:port-number;
   }
   leaf watch-group {
     type uint32;
   }
   uses ofaction:actions-grouping;
 }
 
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    org.opendaylight.yangtools.yang.common.Uint32
    Return watchGroup, or null if it is not present.
    Return watchPort, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint16
    Return weight, or null if it is not present.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint32
    Return watchGroup, guaranteed to be non-null.
    default @NonNull PortNumber
    Return watchPort, guaranteed to be non-null.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint16
    Return weight, guaranteed to be non-null.

    Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.ActionsGrouping Link icon

    getAction, nonnullAction

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

    implementedInterface
  • Method Details Link icon

    • getWeight Link icon

      org.opendaylight.yangtools.yang.common.Uint16 getWeight()
      Return weight, or null if it is not present.
           
               Relative weight of bucket. Only defined for select groups.
           
       
      Returns:
      Uint16 weight, or null if it is not present.
    • requireWeight Link icon

      default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireWeight()
      Return weight, guaranteed to be non-null.
           
               Relative weight of bucket. Only defined for select groups.
           
       
      Returns:
      Uint16 weight, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if weight is not present
    • getWatchPort Link icon

      PortNumber getWatchPort()
      Return watchPort, or null if it is not present.
           
               Port whose state affects whether this bucket is live. Only required for fast
               failover groups.
           
       
      Returns:
      PortNumber watchPort, or null if it is not present.
    • requireWatchPort Link icon

      default @NonNull PortNumber requireWatchPort()
      Return watchPort, guaranteed to be non-null.
           
               Port whose state affects whether this bucket is live. Only required for fast
               failover groups.
           
       
      Returns:
      PortNumber watchPort, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if watchPort is not present
    • getWatchGroup Link icon

      org.opendaylight.yangtools.yang.common.Uint32 getWatchGroup()
      Return watchGroup, or null if it is not present.
           
               Group whose state affects whether this bucket is live. Only required for fast
               failover groups.
           
       
      Returns:
      Uint32 watchGroup, or null if it is not present.
    • requireWatchGroup Link icon

      default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireWatchGroup()
      Return watchGroup, guaranteed to be non-null.
           
               Group whose state affects whether this bucket is live. Only required for fast
               failover groups.
           
       
      Returns:
      Uint32 watchGroup, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if watchGroup is not present