Interface Instruction

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

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

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

     grouping instruction {
       choice instruction {
         case go-to-table-case {
           container go-to-table {
             leaf table_id {
               type uint8;
             }
           }
         }
         case write-metadata-case {
           container write-metadata {
             leaf metadata {
               type uint64;
             }
             leaf metadata-mask {
               type uint64;
             }
           }
         }
         case write-actions-case {
           container write-actions {
             uses action:action-list;
           }
         }
         case apply-actions-case {
           container apply-actions {
             uses action:action-list;
           }
         }
         case clear-actions-case {
           container clear-actions {
             uses action:action-list;
           }
         }
         case meter-case {
           container meter {
             leaf meter-id {
               type meter:meter-id;
             }
           }
         }
       }
     }
     
    The schema path to identify an instance is opendaylight-flow-types/instruction
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

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

        Instruction getInstruction()
        Return instruction, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.Instruction instruction, or null if it is not present.