Contents

WriteMetadata

@open_flow13

Scenario: new(metadata: 1)

  • When I create an OpenFlow instruction with:
    Pio::OpenFlow13::WriteMetadata.new(metadata: 1)
  • Then the message has the following fields and values:
    fieldvalue
    classPio::OpenFlow13::WriteMetadata
    instruction_type2
    instruction_length24
    to_binary_s.length24
    metadata1
    metadata_mask0

Scenario: read

  • When I parse a file named "open_flow13/instruction_write_metadata.raw" with "Pio::OpenFlow13::WriteMetadata" class
  • Then the message has the following fields and values:
    fieldvalue
    classPio::OpenFlow13::WriteMetadata
    instruction_type2
    instruction_length24
    to_binary_s.length24
    metadata1
    metadata_mask1

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