Skip to content

Commit

Permalink
Merge branch 'develop' into feature/nicira_resubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Oct 26, 2015
2 parents 86b273d + 4d1e495 commit ec0f55f
Show file tree
Hide file tree
Showing 42 changed files with 416 additions and 585 deletions.
2 changes: 1 addition & 1 deletion Rakefile
@@ -1,7 +1,7 @@
require 'bundler/gem_tasks'

RELISH_PROJECT = 'trema/pio'
FLAY_THRESHOLD = 1067
FLAY_THRESHOLD = 1090

task default: :travis
task test: [:spec, :cucumber]
Expand Down
14 changes: 7 additions & 7 deletions features/open_flow10/enqueue.feature
@@ -1,17 +1,17 @@
@open_flow10
Feature: Pio::Enqueue
Feature: Pio::OpenFlow10::Enqueue

Scenario: new(port: 1, queue_id: 2)
When I try to create an OpenFlow action with:
"""
Pio::Enqueue.new(port: 1, queue_id: 2)
Pio::OpenFlow10::Enqueue.new(port: 1, queue_id: 2)
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 11 |
| length | 16 |
| port | 1 |
| queue_id | 2 |
| field | value |
| action_type | 11 |
| action_length | 16 |
| port | 1 |
| queue_id | 2 |


6 changes: 3 additions & 3 deletions features/open_flow10/flow_mod.feature
Expand Up @@ -76,7 +76,7 @@ Feature: Pio::FlowMod
| out_port | 65535 |
| flags | [:send_flow_rem] |
| actions.length | 12 |
| actions.first.class | Pio::SetVlanVid |
| actions.first.class | Pio::OpenFlow10::SetVlanVid |
| actions.first.vlan_id | 10 |

Scenario: read (Flow Mod Modify)
Expand Down Expand Up @@ -113,7 +113,7 @@ Feature: Pio::FlowMod
| out_port | 65535 |
| flags | [:send_flow_rem] |
| actions.length | 12 |
| actions.first.class | Pio::SetVlanVid |
| actions.first.class | Pio::OpenFlow10::SetVlanVid |
| actions.first.vlan_id | 10 |

Scenario: read (Flow Mod Modify Strict)
Expand Down Expand Up @@ -150,7 +150,7 @@ Feature: Pio::FlowMod
| out_port | 65535 |
| flags | [:send_flow_rem] |
| actions.length | 12 |
| actions.first.class | Pio::SetVlanVid |
| actions.first.class | Pio::OpenFlow10::SetVlanVid |
| actions.first.vlan_id | 10 |

Scenario: read (Flow Mod Delete)
Expand Down
80 changes: 40 additions & 40 deletions features/open_flow10/send_out_port.feature
Expand Up @@ -8,11 +8,11 @@ Feature: Pio::SendOutPort
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 0 |
| length | 8 |
| port | 1 |
| max_length | 65535 |
| field | value |
| action_type | 0 |
| action_length | 8 |
| port | 1 |
| max_length | 65535 |

Scenario: new(:all)
When I try to create an OpenFlow action with:
Expand All @@ -21,11 +21,11 @@ Feature: Pio::SendOutPort
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 0 |
| length | 8 |
| port | :all |
| max_length | 65535 |
| field | value |
| action_type | 0 |
| action_length | 8 |
| port | :all |
| max_length | 65535 |

Scenario: new(:controller)
When I try to create an OpenFlow action with:
Expand All @@ -34,11 +34,11 @@ Feature: Pio::SendOutPort
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 0 |
| length | 8 |
| port | :controller |
| max_length | 65535 |
| field | value |
| action_type | 0 |
| action_length | 8 |
| port | :controller |
| max_length | 65535 |

Scenario: new(:local)
When I try to create an OpenFlow action with:
Expand All @@ -47,11 +47,11 @@ Feature: Pio::SendOutPort
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 0 |
| length | 8 |
| port | :local |
| max_length | 65535 |
| field | value |
| action_type | 0 |
| action_length | 8 |
| port | :local |
| max_length | 65535 |

Scenario: new(:table)
When I try to create an OpenFlow action with:
Expand All @@ -60,11 +60,11 @@ Feature: Pio::SendOutPort
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 0 |
| length | 8 |
| port | :table |
| max_length | 65535 |
| field | value |
| action_type | 0 |
| action_length | 8 |
| port | :table |
| max_length | 65535 |

Scenario: new(:in_port)
When I try to create an OpenFlow action with:
Expand All @@ -73,11 +73,11 @@ Feature: Pio::SendOutPort
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 0 |
| length | 8 |
| port | :in_port |
| max_length | 65535 |
| field | value |
| action_type | 0 |
| action_length | 8 |
| port | :in_port |
| max_length | 65535 |

Scenario: new(:normal)
When I try to create an OpenFlow action with:
Expand All @@ -86,11 +86,11 @@ Feature: Pio::SendOutPort
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 0 |
| length | 8 |
| port | :normal |
| max_length | 65535 |
| field | value |
| action_type | 0 |
| action_length | 8 |
| port | :normal |
| max_length | 65535 |

Scenario: new(:flood)
When I try to create an OpenFlow action with:
Expand All @@ -99,8 +99,8 @@ Feature: Pio::SendOutPort
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 0 |
| length | 8 |
| port | :flood |
| max_length | 65535 |
| field | value |
| action_type | 0 |
| action_length | 8 |
| port | :flood |
| max_length | 65535 |
12 changes: 6 additions & 6 deletions features/open_flow10/set_ether_destination_address.feature
@@ -1,16 +1,16 @@
@open_flow10
Feature: Pio::SetEtherDestinationAddress
Feature: Pio::OpenFlow10::SetEtherDestinationAddress

Scenario: new('11:22:33:44:55:66')
When I try to create an OpenFlow action with:
"""
Pio::SetEtherDestinationAddress.new('11:22:33:44:55:66')
Pio::OpenFlow10::SetEtherDestinationAddress.new('11:22:33:44:55:66')
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 5 |
| length | 16 |
| mac_address | 11:22:33:44:55:66 |
| field | value |
| action_type | 5 |
| action_length | 16 |
| mac_address | 11:22:33:44:55:66 |


12 changes: 6 additions & 6 deletions features/open_flow10/set_ether_source_address.feature
@@ -1,16 +1,16 @@
@open_flow10
Feature: Pio::SetEtherSourceAddress
Feature: Pio::OpenFlow10::SetEtherSourceAddress

Scenario: new('11:22:33:44:55:66')
When I try to create an OpenFlow action with:
"""
Pio::SetEtherSourceAddress.new('11:22:33:44:55:66')
Pio::OpenFlow10::SetEtherSourceAddress.new('11:22:33:44:55:66')
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 4 |
| length | 16 |
| mac_address | 11:22:33:44:55:66 |
| field | value |
| action_type | 4 |
| action_length | 16 |
| mac_address | 11:22:33:44:55:66 |


12 changes: 6 additions & 6 deletions features/open_flow10/set_ip_destination_address.feature
@@ -1,16 +1,16 @@
@open_flow10
Feature: Pio::SetIpDestinationAddress
Feature: Pio::OpenFlow10::SetIpDestinationAddress

Scenario: new('192.168.0.1')
When I try to create an OpenFlow action with:
"""
Pio::SetIpDestinationAddress.new('192.168.0.1')
Pio::OpenFlow10::SetIpDestinationAddress.new('192.168.0.1')
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 7 |
| length | 8 |
| ip_address | 192.168.0.1 |
| field | value |
| action_type | 7 |
| action_length | 8 |
| ip_address | 192.168.0.1 |


12 changes: 6 additions & 6 deletions features/open_flow10/set_ip_source_address.feature
@@ -1,16 +1,16 @@
@open_flow10
Feature: Pio::SetIpSourceAddress
Feature: Pio::OpenFlow10::SetIpSourceAddress

Scenario: new('192.168.0.1')
When I try to create an OpenFlow action with:
"""
Pio::SetIpSourceAddress.new('192.168.0.1')
Pio::OpenFlow10::SetIpSourceAddress.new('192.168.0.1')
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 6 |
| length | 8 |
| ip_address | 192.168.0.1 |
| field | value |
| action_type | 6 |
| action_length | 8 |
| ip_address | 192.168.0.1 |


6 changes: 3 additions & 3 deletions features/open_flow10/set_ip_tos.feature
@@ -1,16 +1,16 @@
@open_flow10
Feature: Pio::SetIpTos
Feature: Pio::OpenFlow10::SetIpTos

Scenario: new(0b11111100)
When I try to create an OpenFlow action with:
"""
Pio::SetIpTos.new(0b11111100)
Pio::OpenFlow10::SetIpTos.new(0b11111100)
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 8 |
| length | 8 |
| action_length | 8 |
| type_of_service | 252 |


12 changes: 6 additions & 6 deletions features/open_flow10/set_transport_destination_port.feature
@@ -1,16 +1,16 @@
@open_flow10
Feature: Pio::SetTransportDestinationPort
Feature: Pio::OpenFlow10::SetTransportDestinationPort

Scenario: new(100)
When I try to create an OpenFlow action with:
"""
Pio::SetTransportDestinationPort.new(100)
Pio::OpenFlow10::SetTransportDestinationPort.new(100)
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 10 |
| length | 8 |
| port | 100 |
| field | value |
| action_type | 10 |
| action_length | 8 |
| port | 100 |


12 changes: 6 additions & 6 deletions features/open_flow10/set_transport_source_port.feature
@@ -1,16 +1,16 @@
@open_flow10
Feature: Pio::SetTransportSourcePort
Feature: Pio::OpenFlow10::SetTransportSourcePort

Scenario: new(100)
When I try to create an OpenFlow action with:
"""
Pio::SetTransportSourcePort.new(100)
Pio::OpenFlow10::SetTransportSourcePort.new(100)
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 9 |
| length | 8 |
| port | 100 |
| field | value |
| action_type | 9 |
| action_length | 8 |
| port | 100 |


6 changes: 3 additions & 3 deletions features/open_flow10/set_vlan_priority.feature
@@ -1,16 +1,16 @@
@open_flow10
Feature: Pio::SetVlanPriority
Feature: Pio::OpenFlow10::SetVlanPriority

Scenario: new(1)
When I try to create an OpenFlow action with:
"""
Pio::SetVlanPriority.new(1)
Pio::OpenFlow10::SetVlanPriority.new(1)
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 2 |
| length | 8 |
| action_length | 8 |
| vlan_priority | 1 |


12 changes: 6 additions & 6 deletions features/open_flow10/set_vlan_vid.feature
@@ -1,16 +1,16 @@
@open_flow10
Feature: Pio::SetVlanVid
Feature: Pio::OpenFlow10::SetVlanVid

Scenario: new(1)
When I try to create an OpenFlow action with:
"""
Pio::SetVlanVid.new(1)
Pio::OpenFlow10::SetVlanVid.new(1)
"""
Then it should finish successfully
And the action has the following fields and values:
| field | value |
| action_type | 1 |
| length | 8 |
| vlan_id | 1 |
| field | value |
| action_type | 1 |
| action_length | 8 |
| vlan_id | 1 |


0 comments on commit ec0f55f

Please sign in to comment.