Contents

Apply

@open_flow13

Scenario: new()

  • When I create an OpenFlow instruction with:
    Pio::Apply.new
  • Then the message has the following fields and values:
    fieldvalue
    classPio::OpenFlow13::Apply
    instruction_type4
    instruction_length8
    actions[]

Scenario: new(SendOutPort.new(1))

  • When I create an OpenFlow instruction with:
    Pio::Apply.new(Pio::SendOutPort.new(1))
  • Then the message has the following fields and values:
    fieldvalue
    classPio::OpenFlow13::Apply
    instruction_type4
    instruction_length24
    actions.size1
    actions.at(0).classPio::OpenFlow13::SendOutPort
    actions.at(0).port1

Scenario: read

  • When I parse a file named "open_flow13/apply_actions.raw" with "Pio::Apply" class
  • Then the message has the following fields and values:
    fieldvalue
    classPio::OpenFlow13::Apply
    instruction_type4
    instruction_length24
    actions.size1
    actions.at(0).classPio::OpenFlow13::SendOutPort
    actions.at(0).port1

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