Contents

FlowMod

@open_flow13

Scenario: new

  • When I create an OpenFlow message with:
    Pio::FlowMod.new
  • Then the message has the following fields and values:
    fieldvalue
    version4
    to_binary.length56
    transaction_id0
    xid0
    cookie0
    cookie_mask0
    table_id0
    command:add
    idle_timeout0
    hard_timeout0
    priority.to_hex0xffff
    buffer_id:no_buffer
    out_port:any
    out_group:any
    flags[]
    match.match_fields[]
    instructions[]

Scenario: new(instructions: Pio::Apply.new(Pio::SendOutPort.new(1)))

  • When I create an OpenFlow message with:
    Pio::FlowMod.new(instructions: Pio::Apply.new(Pio::SendOutPort.new(1)))
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id0
    xid0
    cookie0
    cookie_mask0
    table_id0
    command:add
    idle_timeout0
    hard_timeout0
    priority.to_hex0xffff
    buffer_id:no_buffer
    out_port:any
    out_group:any
    flags[]
    match.match_fields[]
    instructions.size1
    instructions.at(0).classPio::OpenFlow13::Apply
    instructions.at(0).actions.at(0).classPio::OpenFlow13::SendOutPort
    instructions.at(0).actions.at(0).port1

Scenario: new(match: Pio::Match.new(in_port: 1), instructions: Pio::Apply.new(Pio::SendOutPort.new(1)))

  • When I create an OpenFlow message with:
    Pio::FlowMod.new(match: Pio::Match.new(in_port: 1), instructions: Pio::Apply.new(Pio::SendOutPort.new(1)))
  • Then the message has the following fields and values:
    fieldvalue
    version4
    transaction_id0
    xid0
    cookie0
    cookie_mask0
    table_id0
    command:add
    idle_timeout0
    hard_timeout0
    priority.to_hex0xffff
    buffer_id:no_buffer
    out_port:any
    out_group:any
    flags[]
    match.in_port1
    instructions.size1
    instructions.at(0).classPio::OpenFlow13::Apply
    instructions.at(0).actions.at(0).classPio::OpenFlow13::SendOutPort
    instructions.at(0).actions.at(0).port1

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