Contents

FlowMod

@open_flow10

Scenario: new

  • When I create an OpenFlow message with:
    Pio::FlowMod.new(
      actions: [],
      buffer_id: 0,
      command: :add,
      flags: [],
      hard_timeout: 0,
      idle_timeout: 0,
      match: Pio::Match.new(),
      out_port: 0,
      priority: 0
    )
  • Then the message has the following fields and values:
    fieldvalue
    actions[]
    buffer_id0
    command:add
    flags[]
    hard_timeout0
    idle_timeout0
    match.wildcards.keys.size12
    match.wildcards.key?(:in_port)true
    match.wildcards.key?(:vlan_vid)true
    match.wildcards.key?(:source_mac_address)true
    match.wildcards.key?(:destination_mac_address)true
    match.wildcards.key?(:ether_type)true
    match.wildcards.key?(:ip_protocol)true
    match.wildcards.key?(:transport_source_port)true
    match.wildcards.key?(:transport_destination_port)true
    match.wildcards.key?(:source_ip_address_all)true
    match.wildcards.key?(:destination_ip_address_all)true
    match.wildcards.key?(:vlan_priority)true
    match.wildcards.key?(:tos)true
    out_port0
    priority0

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