Interface PacketQueue

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, QueuePropertyHeader
    All Known Subinterfaces:
    Queues

    @Generated("mdsal-binding-generator")
    public interface PacketQueue
    extends org.opendaylight.yangtools.yang.binding.DataObject, QueuePropertyHeader

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

     grouping packet-queue {
       leaf queue-id {
         type oft:queue-id;
       }
       leaf port {
         type oft:port-number;
       }
       uses queue-property-header;
     }
     
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
        YANG identifier of the statement represented by this class.
    • Method Detail

      • implementedInterface

        Class<? extends PacketQueue> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
        Specified by:
        implementedInterface in interface QueuePropertyHeader
      • getQueueId

        QueueId getQueueId()
        Return queueId, or null if it is not present.
        Returns:
        QueueId queueId, or null if it is not present.
      • requireQueueId

        default @NonNull QueueId requireQueueId()
        Return queueId, guaranteed to be non-null.
        Returns:
        QueueId queueId, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if queueId is not present
      • getPort

        PortNumber getPort()
        Return port, or null if it is not present.
        Returns:
        PortNumber port, or null if it is not present.
      • requirePort

        default @NonNull PortNumber requirePort()
        Return port, guaranteed to be non-null.
        Returns:
        PortNumber port, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if port is not present