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
All Known Subinterfaces:
VlanMatch

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

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

 grouping vlan-match-fields {
   container vlan-id {
     presence "Match field is active and set";
     leaf vlan-id-present {
       type boolean;
     }
     leaf vlan-id {
       type l2t:vlan-id;
     }
   }
   leaf vlan-pcp {
     type l2t:vlan-pcp;
   }
 }
 
  • 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
    Return vlanId, or null if it is not present.
    org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp
    Return vlanPcp, or null if it is not present.
     
    default @NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp
    Return vlanPcp, guaranteed to be non-null.
  • 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 VlanMatchFields> 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
    • getVlanId

      VlanId getVlanId()
      Return vlanId, or null if it is not present.
           
               VLAN id.
           
       
      Returns:
      VlanId vlanId, or null if it is not present.
    • getVlanPcp

      org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp getVlanPcp()
      Return vlanPcp, or null if it is not present.
           
               VLAN priority.
           
       
      Returns:
      VlanPcp vlanPcp, or null if it is not present.
    • requireVlanPcp

      default @NonNull org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp requireVlanPcp()
      Return vlanPcp, guaranteed to be non-null.
           
               VLAN priority.
           
       
      Returns:
      VlanPcp vlanPcp, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if vlanPcp is not present