Contents

AggregateStats::Request

@open_flow10

Aggregate information about multiple flows is requested with the Aggregate Stats Request message

Scenario: new

  • When I create an OpenFlow message with:
    Pio::AggregateStats::Request.new(match: Pio::Match.new(in_port: 1))
  • Then the message has the following fields and values:
    fieldvalue
    version1
    transaction_id0
    xid0
    stats_type:aggregate
    match.in_port1
    match.wildcards.keys.size11
    match.wildcards.fetch(:destination_mac_address)true
    match.wildcards.fetch(:source_mac_address)true
    match.wildcards.fetch(:ether_type)true
    match.wildcards.fetch(:destination_ip_address_all)true
    match.wildcards.fetch(:ip_protocol)true
    match.wildcards.fetch(:source_ip_address_all)true
    match.wildcards.fetch(:tos)true
    match.wildcards.fetch(:transport_destination_port)true
    match.wildcards.fetch(:transport_source_port)true
    match.wildcards.fetch(:vlan_priority)true
    match.wildcards.fetch(:vlan_vid)true
    table_id.to_hex0xff
    out_port:none

Scenario: read

  • When I parse a file named "open_flow10/aggregate_stats_request.raw" with "Pio::AggregateStats::Request" class
  • Then the message has the following fields and values:
    fieldvalue
    version1
    transaction_id14
    xid14
    stats_type:aggregate
    match.wildcards.keys.size12
    match.wildcards.fetch(:destination_mac_address)true
    match.wildcards.fetch(:source_mac_address)true
    match.wildcards.fetch(:ether_type)true
    match.wildcards.fetch(:in_port)true
    match.wildcards.fetch(:destination_ip_address_all)true
    match.wildcards.fetch(:ip_protocol)true
    match.wildcards.fetch(:source_ip_address_all)true
    match.wildcards.fetch(:tos)true
    match.wildcards.fetch(:transport_destination_port)true
    match.wildcards.fetch(:transport_source_port)true
    match.wildcards.fetch(:vlan_priority)true
    match.wildcards.fetch(:vlan_vid)true
    table_id.to_hex0xff
    out_port:none

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