Skip to content

Commit

Permalink
Merge branch 'develop' into feature/nicira_reg_load
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Nov 11, 2015
2 parents ad8f74d + 3e726c6 commit f213f0e
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 44 deletions.
@@ -1,4 +1,3 @@
@open_flow10
Feature: Pio::NiciraResubmit

Scenario: new(1)
Expand Down
@@ -1,4 +1,3 @@
@open_flow10
Feature: Pio::NiciraResubmitTable

Scenario: new(in_port: 1, table: 1)
Expand Down
6 changes: 3 additions & 3 deletions lib/pio/open_flow.rb
Expand Up @@ -19,9 +19,9 @@ def self.switch_version(version)
:PacketIn, :FlowRemoved, :PacketOut, :SendOutPort,
:SetSourceMacAddress, :SetDestinationMacAddress, :PortStatus, :Stats,
:FlowStats, :DescriptionStats, :AggregateStats, :TableStats, :PortStats,
:QueueStats, :Error, :NiciraResubmit, :SetArpOperation,
:SetArpSenderProtocolAddress, :SetArpSenderHardwareAddress,
:NiciraResubmitTable, :NiciraRegMove, :NiciraRegLoad].each do |each|
:QueueStats, :Error, :SetArpOperation, :SetArpSenderProtocolAddress,
:SetArpSenderHardwareAddress, :NiciraRegMove,
:NiciraRegLoad].each do |each|
set_message_class_name each, version
@version = version.to_s
end
Expand Down
18 changes: 18 additions & 0 deletions lib/pio/open_flow/nicira_resubmit.rb
@@ -0,0 +1,18 @@
require 'pio/open_flow/nicira_action'
require 'pio/open_flow10/port16'

module Pio
# NXAST_RESUBMIT action
class NiciraResubmit < OpenFlow::NiciraAction
nicira_action_header action_type: 0xffff,
action_length: 16,
subtype: 1
port16 :in_port
string :padding, length: 4
hide :padding

def initialize(port_number)
super(in_port: port_number)
end
end
end
15 changes: 15 additions & 0 deletions lib/pio/open_flow/nicira_resubmit_table.rb
@@ -0,0 +1,15 @@
require 'pio/open_flow/nicira_action'
require 'pio/open_flow10/port16'

module Pio
# NXAST_RESUBMIT_TABLE action
class NiciraResubmitTable < OpenFlow::NiciraAction
nicira_action_header action_type: 0xffff,
action_length: 16,
subtype: 14
port16 :in_port
uint8 :table, initial_value: 0xff
string :padding, length: 3
hide :padding
end
end
4 changes: 2 additions & 2 deletions lib/pio/open_flow10.rb
Expand Up @@ -27,8 +27,8 @@
require 'pio/open_flow10/table_stats/request'

# Actions
require 'pio/open_flow10/nicira_resubmit'
require 'pio/open_flow10/nicira_resubmit_table'
require 'pio/open_flow/nicira_resubmit'
require 'pio/open_flow/nicira_resubmit_table'
require 'pio/open_flow10/send_out_port'
require 'pio/open_flow10/set_destination_mac_address'
require 'pio/open_flow10/set_source_mac_address'
Expand Down
20 changes: 0 additions & 20 deletions lib/pio/open_flow10/nicira_resubmit.rb

This file was deleted.

17 changes: 0 additions & 17 deletions lib/pio/open_flow10/nicira_resubmit_table.rb

This file was deleted.

2 changes: 2 additions & 0 deletions lib/pio/open_flow13.rb
Expand Up @@ -13,6 +13,8 @@
require 'pio/open_flow13/stats_request'

# Actions
require 'pio/open_flow/nicira_resubmit'
require 'pio/open_flow/nicira_resubmit_table'
require 'pio/open_flow13/nicira_reg_load'
require 'pio/open_flow13/nicira_reg_move'
require 'pio/open_flow13/send_out_port'
Expand Down

0 comments on commit f213f0e

Please sign in to comment.