Skip to content

Commit

Permalink
Remove OpenFlow10 namespace from Pio::Set*MacAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Nov 5, 2015
1 parent 19c2257 commit 7d79512
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
## develop (unreleased)


## 0.28.1 (11/5/2015)
### Changes
* Remove `OpenFlow10` namespace from `Pio::OpenFlow10::SetSourceMacAddress` and `Pio::OpenFlow10::SetDestinationMacAddress`.


## 0.28.0 (11/5/2015)
### New features
* [#267](https://github.com/trema/pio/pull/267): Add Queue Stats Request message generator.
Expand Down
4 changes: 2 additions & 2 deletions features/open_flow10/set_destination_mac_address.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@open_flow10
Feature: Pio::OpenFlow10::SetDestinationMacAddress
Feature: Pio::SetDestinationMacAddress

Scenario: new('11:22:33:44:55:66')
When I try to create an OpenFlow action with:
"""
Pio::OpenFlow10::SetDestinationMacAddress.new('11:22:33:44:55:66')
Pio::SetDestinationMacAddress.new('11:22:33:44:55:66')
"""
Then it should finish successfully
And the action has the following fields and values:
Expand Down
4 changes: 2 additions & 2 deletions features/open_flow10/set_source_mac_address.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@open_flow10
Feature: Pio::OpenFlow10::SetSourceMacAddress
Feature: Pio::SetSourceMacAddress

Scenario: new('11:22:33:44:55:66')
When I try to create an OpenFlow action with:
"""
Pio::OpenFlow10::SetSourceMacAddress.new('11:22:33:44:55:66')
Pio::SetSourceMacAddress.new('11:22:33:44:55:66')
"""
Then it should finish successfully
And the action has the following fields and values:
Expand Down
7 changes: 4 additions & 3 deletions lib/pio/open_flow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ def self.version

def self.switch_version(version)
[:Barrier, :Echo, :Features, :FlowMod, :Hello, :Match,
:PacketIn, :FlowRemoved, :PacketOut, :SendOutPort, :PortStatus,
:Stats, :FlowStats, :DescriptionStats, :AggregateStats,
:TableStats, :PortStats, :QueueStats, :Error, :NiciraResubmit,
:PacketIn, :FlowRemoved, :PacketOut, :SendOutPort,
:SetSourceMacAddress, :SetDestinationMacAddress, :PortStatus, :Stats,
:FlowStats, :DescriptionStats, :AggregateStats, :TableStats, :PortStats,
:QueueStats, :Error, :NiciraResubmit,
:NiciraResubmitTable].each do |each|
set_message_class_name each, version
@version = version.to_s
Expand Down

0 comments on commit 7d79512

Please sign in to comment.