Skip to content

Commit

Permalink
Add FlowStats::Request and FlowStats::Reply class.
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Aug 6, 2015
1 parent f6f1ad2 commit 1a483bf
Show file tree
Hide file tree
Showing 45 changed files with 644 additions and 210 deletions.
2 changes: 1 addition & 1 deletion .reek
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
UncommunicativeModuleName:
accept: ['Pio::Hello13']
accept: ['Pio::Hello13', 'Pio::OpenFlow10', 'Pio::OpenFlow13']
4 changes: 2 additions & 2 deletions features/arp.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Feature: Pio::Arp
)
"""
Then it should finish successfully
And the packet have the following fields and values:
And the packet has the following fields and values:
| field | value |
| class | Pio::Arp::Request |
| destination_mac | ff:ff:ff:ff:ff:ff |
Expand All @@ -36,7 +36,7 @@ Feature: Pio::Arp
)
"""
Then it should finish successfully
And the packet have the following fields and values:
And the packet has the following fields and values:
| field | value |
| class | Pio::Arp::Reply |
| destination_mac | 00:26:82:eb:ea:d1 |
Expand Down
8 changes: 4 additions & 4 deletions features/dhcp.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Feature: Pio::Dhcp
)
"""
Then it should finish successfully
And the packet have the following fields and values:
And the packet has the following fields and values:
| field | value |
| class | Pio::Dhcp::Ack |
| destination_mac | 11:22:33:44:55:66 |
Expand Down Expand Up @@ -64,7 +64,7 @@ Feature: Pio::Dhcp
)
"""
Then it should finish successfully
And the packet have the following fields and values:
And the packet has the following fields and values:
| field | value |
| class | Pio::Dhcp::Discover |
| destination_mac | ff:ff:ff:ff:ff:ff |
Expand Down Expand Up @@ -112,7 +112,7 @@ Feature: Pio::Dhcp
)
"""
Then it should finish successfully
And the packet have the following fields and values:
And the packet has the following fields and values:
| field | value |
| class | Pio::Dhcp::Request |
| destination_mac | ff:ff:ff:ff:ff:ff |
Expand Down Expand Up @@ -166,7 +166,7 @@ Feature: Pio::Dhcp
)
"""
Then it should finish successfully
And the packet have the following fields and values:
And the packet has the following fields and values:
| field | value |
| class | Pio::Dhcp::Offer |
| destination_mac | 11:22:33:44:55:66 |
Expand Down
4 changes: 2 additions & 2 deletions features/icmp.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Feature: Pio::Icmp
)
"""
Then it should finish successfully
And the packet have the following fields and values:
And the packet has the following fields and values:
| field | value |
| class | Pio::Icmp::Request |
| destination_mac | 00:26:82:eb:ea:d1 |
Expand Down Expand Up @@ -49,7 +49,7 @@ Feature: Pio::Icmp
)
"""
Then it should finish successfully
And the packet have the following fields and values:
And the packet has the following fields and values:
| field | value |
| class | Pio::Icmp::Reply |
| destination_mac | 00:16:9d:1d:9c:c4 |
Expand Down
2 changes: 1 addition & 1 deletion features/lldp.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Pio::Lldp
Pio::Lldp.new(dpid: 0x123, port_number: 12, source_mac: '11:22:33:44:55:66')
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| class | Pio::Lldp |
| destination_mac | 01:80:c2:00:00:0e |
Expand Down
8 changes: 4 additions & 4 deletions features/open_flow10/barrier_reply.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Pio::Barrier::Reply
Pio::Barrier::Reply.new
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 19 |
Expand All @@ -21,7 +21,7 @@ Feature: Pio::Barrier::Reply
Pio::Barrier::Reply.new(transaction_id: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 19 |
Expand All @@ -36,7 +36,7 @@ Feature: Pio::Barrier::Reply
Pio::Barrier::Reply.new(xid: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 19 |
Expand All @@ -48,7 +48,7 @@ Feature: Pio::Barrier::Reply
Scenario: read
When I try to parse a file named "open_flow10/barrier_reply.raw" with "Barrier::Reply" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 19 |
Expand Down
8 changes: 4 additions & 4 deletions features/open_flow10/barrier_request.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Pio::Barrier::Request
Pio::Barrier::Request.new
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 18 |
Expand All @@ -21,7 +21,7 @@ Feature: Pio::Barrier::Request
Pio::Barrier::Request.new(transaction_id: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 18 |
Expand All @@ -36,7 +36,7 @@ Feature: Pio::Barrier::Request
Pio::Barrier::Request.new(xid: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 18 |
Expand All @@ -48,7 +48,7 @@ Feature: Pio::Barrier::Request
Scenario: read
When I try to parse a file named "open_flow10/barrier_request.raw" with "Barrier::Request" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 18 |
Expand Down
12 changes: 6 additions & 6 deletions features/open_flow10/echo_reply.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Pio::Echo::Reply
Pio::Echo::Reply.new
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 3 |
Expand All @@ -22,7 +22,7 @@ Feature: Pio::Echo::Reply
Pio::Echo::Reply.new(transaction_id: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 3 |
Expand All @@ -38,7 +38,7 @@ Feature: Pio::Echo::Reply
Pio::Echo::Reply.new(xid: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 3 |
Expand All @@ -61,7 +61,7 @@ Feature: Pio::Echo::Reply
Pio::Echo::Reply.new(body: 'echo reply body')
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 3 |
Expand All @@ -77,7 +77,7 @@ Feature: Pio::Echo::Reply
Pio::Echo::Reply.new(user_data: 'echo reply body')
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 3 |
Expand All @@ -90,7 +90,7 @@ Feature: Pio::Echo::Reply
Scenario: read (no message body)
When I try to parse a file named "open_flow10/echo_reply.raw" with "Pio::Echo::Reply" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 3 |
Expand Down
12 changes: 6 additions & 6 deletions features/open_flow10/echo_request.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Pio::Echo::Request
Pio::Echo::Request.new
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 2 |
Expand All @@ -22,7 +22,7 @@ Feature: Pio::Echo::Request
Pio::Echo::Request.new(transaction_id: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 2 |
Expand All @@ -38,7 +38,7 @@ Feature: Pio::Echo::Request
Pio::Echo::Request.new(xid: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 2 |
Expand All @@ -54,7 +54,7 @@ Feature: Pio::Echo::Request
Pio::Echo::Request.new(body: 'echo request body')
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 2 |
Expand All @@ -70,7 +70,7 @@ Feature: Pio::Echo::Request
Pio::Echo::Request.new(user_data: 'echo request body')
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 2 |
Expand All @@ -83,7 +83,7 @@ Feature: Pio::Echo::Request
Scenario: read (no message body)
When I try to parse a file named "open_flow10/echo_request.raw" with "Pio::Echo::Request" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 2 |
Expand Down
4 changes: 2 additions & 2 deletions features/open_flow10/exact_match.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: Pio::ExactMatch
Scenario: new (from ARP request Packet In)
When I create an exact match from "open_flow10/packet_in_arp_request.raw"
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| wildcards | {} |
| in_port | 1 |
Expand All @@ -19,7 +19,7 @@ Feature: Pio::ExactMatch

Scenario: new (from Cbench Packet In)
When I create an exact match from "open_flow10/packet_in_cbench.raw"
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| wildcards | {} |
| in_port | 1 |
Expand Down
4 changes: 2 additions & 2 deletions features/open_flow10/features_reply.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Feature: Pio::Features::Reply
)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 6 |
Expand Down Expand Up @@ -50,7 +50,7 @@ Feature: Pio::Features::Reply
Scenario: read
When I try to parse a file named "open_flow10/features_reply.raw" with "Features::Reply" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 6 |
Expand Down
8 changes: 4 additions & 4 deletions features/open_flow10/features_request.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Pio::Features::Request
Pio::Features::Request.new
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 5 |
Expand All @@ -21,7 +21,7 @@ Feature: Pio::Features::Request
Pio::Features::Request.new(transaction_id: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 5 |
Expand All @@ -36,7 +36,7 @@ Feature: Pio::Features::Request
Pio::Features::Request.new(xid: 123)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 5 |
Expand All @@ -48,7 +48,7 @@ Feature: Pio::Features::Request
Scenario: read
When I try to parse a file named "open_flow10/features_request.raw" with "Pio::Features::Request" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 5 |
Expand Down
12 changes: 6 additions & 6 deletions features/open_flow10/flow_mod.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Feature: Pio::FlowMod
)
"""
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 14 |
Expand Down Expand Up @@ -45,7 +45,7 @@ Feature: Pio::FlowMod
Scenario: read (Flow Mod Add)
When I try to parse a file named "open_flow10/flow_mod_add.raw" with "Pio::FlowMod" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 14 |
Expand Down Expand Up @@ -82,7 +82,7 @@ Feature: Pio::FlowMod
Scenario: read (Flow Mod Modify)
When I try to parse a file named "open_flow10/flow_mod_modify.raw" with "Pio::FlowMod" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 14 |
Expand Down Expand Up @@ -119,7 +119,7 @@ Feature: Pio::FlowMod
Scenario: read (Flow Mod Modify Strict)
When I try to parse a file named "open_flow10/flow_mod_modify_strict.raw" with "Pio::FlowMod" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 14 |
Expand Down Expand Up @@ -156,7 +156,7 @@ Feature: Pio::FlowMod
Scenario: read (Flow Mod Delete)
When I try to parse a file named "open_flow10/flow_mod_delete.raw" with "Pio::FlowMod" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 14 |
Expand Down Expand Up @@ -191,7 +191,7 @@ Feature: Pio::FlowMod
Scenario: read (Flow Mod Delete Strict)
When I try to parse a file named "open_flow10/flow_mod_delete_strict.raw" with "Pio::FlowMod" class
Then it should finish successfully
And the message have the following fields and values:
And the message has the following fields and values:
| field | value |
| ofp_version | 1 |
| message_type | 14 |
Expand Down
Loading

0 comments on commit 1a483bf

Please sign in to comment.