$schema: http://json-schema.org/draft-04/schema#
description: Schema describing an OpenFlow features reply message, version 1.3
id: of13/ofp_features_reply.json

type: object
required:
  - header
  - datapath_id
  - n_buffers
  - n_tables
  - auxiliary_id
  - capabilities
properties:
  header:
    allOf:
      - $ref: definitions.json#/ofp_header
      - properties:
          type:
            enum: [OFPT_FEATURES_REPLY]
            default: OFPT_FEATURES_REPLY
  datapath_id:
    type: string
    pattern: ^[a-fA-F0-9]{16}$
    default: '0000000000000000'
  n_buffers:
    type: integer
    minimum: 0
    maximum: 4294967295
    default: 0
  n_tables:
    type: integer
    minimum: 0
    maximum: 255
    default: 0
  auxiliary_id:
    type: integer
    minimum: 0
    maximum: 255
    default: 0
  capabilities:
    type: array
    maxItems: 7
    uniqueItems: true
    default: [OFPC_FLOW_STATS]
    items:
      type: string
      enum:
        - OFPC_FLOW_STATS
        - OFPC_TABLE_STATS
        - OFPC_PORT_STATS
        - OFPC_GROUP_STATS
        - OFPC_IP_REASM
        - OFPC_QUEUE_STATS
        - OFPC_PORT_BLOCKED
