Contents

Features::Reply

@open_flow10

Scenario: new

  • When I create an OpenFlow message with:
    Pio::Features::Reply.new(
      datapath_id: 0x123,
      n_buffers: 0x100,
      n_tables: 0xfe,
      capabilities: [:flow_stats, :table_stats, :port_stats, :queue_stats, :arp_match_ip],
      actions: [:output, :set_source_mac_address, :set_destination_mac_address],
      ports: [{ number: 1,
                mac_address: '11:22:33:44:55:66',
                name: 'port123',
                config: [:port_down],
                state: [:link_down],
                curr: [:port_10gb_fd, :port_copper] }]
    )
  • Then the message has the following fields and values:
    fieldvalue
    transaction_id0
    xid0
    datapath_id291
    dpid291
    n_buffers256
    n_tables254
    capabilities[:flow_stats, :table_stats, :port_stats, :queue_stats, :arp_match_ip]
    actions[:output, :set_source_mac_address, :set_destination_mac_address]
    ports.length1
    ports[0].datapath_id291
    ports[0].dpid291
    ports[0].number1
    ports[0].local?false
    ports[0].mac_address11:22:33:44:55:66
    ports[0].nameport123
    ports[0].config[:port_down]
    ports[0].state[:link_down]
    ports[0].down?true
    ports[0].curr[:port_10gb_fd, :port_copper]
    ports[0].advertised[]
    ports[0].supported[]
    ports[0].peer[]

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