Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
526 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
UncommunicativeModuleName: | ||
accept: ['Pio::Hello13', 'Pio::OpenFlow10', 'Pio::OpenFlow13', 'Pio::OpenFlow10::Port16', 'Pio::OpenFlow10::PhyPort16', 'Pio::OpenFlow10::ErrorType10', 'Pio::OpenFlow10::MatchOpenFlow10', 'Pio::OpenFlow13::Error::ErrorType13', 'Pio::OpenFlow10::Port32',] | ||
accept: ['Pio::Hello13', | ||
'Pio::OpenFlow10::Error::ErrorType10', | ||
'Pio::OpenFlow10::Match10', | ||
'Pio::OpenFlow10::MatchOpenFlow10', | ||
'Pio::OpenFlow10::PhyPort16', | ||
'Pio::OpenFlow10::Port16', | ||
'Pio::OpenFlow10::Port32', | ||
'Pio::OpenFlow13', | ||
'Pio::OpenFlow13::Error::ErrorType13', | ||
'Pio::OpenFlow13::Port32', | ||
'Pio::OpenFlow10'] | ||
|
||
TooManyStatements: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@open_flow10 | ||
Feature: Pio::AggregateStats::Reply | ||
Scenario: read | ||
When I try to parse a file named "open_flow10/aggregate_stats_reply.raw" with "AggregateStats::Reply" class | ||
Then it should finish successfully | ||
And the message has the following fields and values: | ||
| field | value | | ||
| ofp_version | 1 | | ||
| message_type | 17 | | ||
| length | 36 | | ||
| transaction_id | 15 | | ||
| xid | 15 | | ||
| stats_type | :aggregate | | ||
| flags | 0 | | ||
| packet_count | 0 | | ||
| byte_count | 0 | | ||
| flow_count | 0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@open_flow10 | ||
Feature: Pio::AggregateStats::Request | ||
Scenario: new | ||
When I try to create an OpenFlow message with: | ||
""" | ||
Pio::AggregateStats::Request.new(match: Match.new(in_port: 1)) | ||
""" | ||
Then it should finish successfully | ||
And the message has the following fields and values: | ||
| field | value | | ||
| ofp_version | 1 | | ||
| message_type | 16 | | ||
| length | 56 | | ||
| transaction_id | 0 | | ||
| xid | 0 | | ||
| stats_type | :aggregate | | ||
| match.in_port | 1 | | ||
| match.wildcards.keys.size | 11 | | ||
| match.wildcards.fetch(:ether_destination_address) | true | | ||
| match.wildcards.fetch(:ether_source_address) | true | | ||
| match.wildcards.fetch(:ether_type) | true | | ||
| match.wildcards.fetch(:ip_destination_address_all) | true | | ||
| match.wildcards.fetch(:ip_protocol) | true | | ||
| match.wildcards.fetch(:ip_source_address_all) | true | | ||
| match.wildcards.fetch(:ip_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_hex | 0xff | | ||
| out_port | :none | | ||
|
||
|
||
Scenario: read | ||
When I try to parse a file named "open_flow10/aggregate_stats_request.raw" with "AggregateStats::Request" class | ||
Then it should finish successfully | ||
And the message has the following fields and values: | ||
| field | value | | ||
| ofp_version | 1 | | ||
| message_type | 16 | | ||
| length | 56 | | ||
| transaction_id | 14 | | ||
| xid | 14 | | ||
| stats_type | :aggregate | | ||
| match.wildcards.keys.size | 12 | | ||
| match.wildcards.fetch(:ether_destination_address) | true | | ||
| match.wildcards.fetch(:ether_source_address) | true | | ||
| match.wildcards.fetch(:ether_type) | true | | ||
| match.wildcards.fetch(:in_port) | true | | ||
| match.wildcards.fetch(:ip_destination_address_all) | true | | ||
| match.wildcards.fetch(:ip_protocol) | true | | ||
| match.wildcards.fetch(:ip_source_address_all) | true | | ||
| match.wildcards.fetch(:ip_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_hex | 0xff | | ||
| out_port | :none | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@open_flow10 | ||
Feature: Pio::DescriptionStats::Reply | ||
Scenario: read | ||
When I try to parse a file named "open_flow10/description_stats_reply.raw" with "DescriptionStats::Reply" class | ||
Then it should finish successfully | ||
And the message has the following fields and values: | ||
| field | value | | ||
| ofp_version | 1 | | ||
| message_type | 17 | | ||
| length | 1068 | | ||
| transaction_id | 12 | | ||
| xid | 12 | | ||
| stats_type | :description | | ||
| manufacturer | Nicira, Inc. | | ||
| hardware | | | ||
| software | | | ||
| serial_number | | | ||
| datapath | | |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@open_flow10 | ||
Feature: Pio::DescriptionStats::Request | ||
Scenario: new | ||
When I try to create an OpenFlow message with: | ||
""" | ||
Pio::DescriptionStats::Request.new | ||
""" | ||
Then it should finish successfully | ||
And the message has the following fields and values: | ||
| field | value | | ||
| ofp_version | 1 | | ||
| message_type | 16 | | ||
| length | 12 | | ||
| transaction_id | 0 | | ||
| xid | 0 | | ||
| stats_type | :description | | ||
|
||
Scenario: new(transaction_id: 123) | ||
When I try to create an OpenFlow message with: | ||
""" | ||
Pio::DescriptionStats::Request.new(transaction_id: 123) | ||
""" | ||
Then it should finish successfully | ||
And the message has the following fields and values: | ||
| field | value | | ||
| ofp_version | 1 | | ||
| message_type | 16 | | ||
| length | 12 | | ||
| transaction_id | 123 | | ||
| xid | 123 | | ||
| stats_type | :description | | ||
|
||
Scenario: read | ||
When I try to parse a file named "open_flow10/description_stats_request.raw" with "DescriptionStats::Request" class | ||
Then it should finish successfully | ||
And the message has the following fields and values: | ||
| field | value | | ||
| ofp_version | 1 | | ||
| message_type | 16 | | ||
| length | 12 | | ||
| transaction_id | 12 | | ||
| xid | 12 | | ||
| stats_type | :description | |
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Feature: Pio::StatsRequest | ||
Background: | ||
Given I use OpenFlow 1.3 | ||
|
||
@wip | ||
Scenario: new | ||
When I try to create an OpenFlow message with: | ||
""" | ||
Pio::StatsRequest.new(stats_type: :table) | ||
""" | ||
Then it should finish successfully | ||
And the message has the following fields and values: | ||
| field | value | | ||
| ofp_version | 4 | | ||
| message_type | 16 | | ||
| message_length | 12 | | ||
| transaction_id | 0 | | ||
| xid | 0 | | ||
| stats_type | :table | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.