Skip to content

Commit

Permalink
Add GotoTable#to_binary_s.
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Jul 1, 2015
1 parent 4a5b507 commit f49ae94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* [#188](https://github.com/trema/pio/pull/188): Add PacketIn#in_port (OpenFlow1.3).
* [#189](https://github.com/trema/pio/pull/189): Add PacketIn#datapath_id= (OpenFlow1.3).
* [#190](https://github.com/trema/pio/pull/190): Add PacketOut#to_binary (OpenFlow1.3).
* [#191](https://github.com/trema/pio/pull/191): Add GotoTable#to_binary_s.


## 0.23.1 (6/30/2015)
Expand Down
4 changes: 3 additions & 1 deletion features/open_flow13/goto_table.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Feature: Pio::GotoTable
| class | Pio::GotoTable |
| instruction_type | 1 |
| instruction_length | 8 |
| to_binary_s.length | 8 |
| table_id | 1 |

Scenario: read
Expand All @@ -22,5 +23,6 @@ Feature: Pio::GotoTable
| field | value |
| class | Pio::GotoTable |
| instruction_type | 1 |
| instruction_length | 8 |
| instruction_length | 8 |
| to_binary_s.length | 8 |
| table_id | 1 |
1 change: 1 addition & 0 deletions lib/pio/open_flow13/goto_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def self.read(raw_data)
def_delegators :@format, :instruction_type
def_delegators :@format, :instruction_length
def_delegators :@format, :table_id
def_delegators :@format, :to_binary_s

def initialize(table_id)
@format = Format.new(table_id: table_id)
Expand Down

0 comments on commit f49ae94

Please sign in to comment.