Contents

Error::BadRequest

@open_flow13

Request was not understood error.

Scenario: new (raw_data = Echo request 1.0)

  • When I create an OpenFlow message with:
    Pio::Error::BadRequest.new(raw_data: Pio::OpenFlow10::Echo::Request.new.to_binary)
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id0
    xid0
    error_type:bad_request
    error_code:bad_version
    raw_data.length8

Scenario: read

  • When I parse a file named "open_flow13/bad_request.raw" with "Pio::Error::BadRequest" class
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id0
    xid0
    error_type:bad_request
    error_code:bad_version
    raw_data.length8

Source: features/open_flow13/bad_request.feature at commit 40dd0fb6, Pio (GPL license).