$schema: http://json-schema.org/draft-04/schema#
description: Schema describing an OpenFlow packet out message, version 1.0
id: of10/ofp_packet_out.json

type: object
required:
  - header
  - buffer_id
  - in_port
  - actions_len
properties:
  header:
    allOf:
      - $ref: definitions.json#/ofp_header
      - properties:
          type:
            enum: [OFPT_PACKET_OUT]
            default: OFPT_PACKET_OUT
  buffer_id:
    type: integer
    maximum: 4294967295
    default: 4294967295
  in_port:
    type: integer
    maximum: 65535
    default: 65534
  actions_len:
    type: integer
    maximum: 65535
    default: 0
  actions:
    type: array
    items:
      $ref: definitions.json#/ofp_action_header
  data:
    $ref: definitions.json#/optional_data
