Interface CommonPortWithMask

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, CommonPort, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    Port, PortMessage

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

    This class represents the following YANG schema fragment defined in module opendaylight-port-types

     grouping common-port-with-mask {
       uses common-port;
       leaf mask {
         type port-config;
       }
     }
     
    • 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 CommonPortWithMask> implementedInterface()
        Specified by:
        implementedInterface in interface CommonPort
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getMask

        PortConfig getMask()
        Return mask, or null if it is not present.
             
                 Bitmap of OFPPC-* flags to be changed
             
         
        Returns:
        PortConfig mask, or null if it is not present.
      • requireMask

        default @NonNull PortConfig requireMask()
        Return mask, guaranteed to be non-null.
             
                 Bitmap of OFPPC-* flags to be changed
             
         
        Returns:
        PortConfig mask, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if mask is not present