Class: Pio::OpenFlow13::NiciraSendOutPort
- Inherits:
-
Pio::OpenFlow::NiciraAction
- Object
- Pio::OpenFlow::Action
- Pio::OpenFlow::NiciraAction
- Pio::OpenFlow13::NiciraSendOutPort
- Defined in:
- lib/pio/open_flow13/nicira_send_out_port.rb
Overview
NXAST_OUTPUT_REG action
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, options = {}) ⇒ NiciraSendOutPort
constructor
A new instance of NiciraSendOutPort.
- #n_bits ⇒ Object
- #offset ⇒ Object
Methods inherited from Pio::OpenFlow::NiciraAction
Methods inherited from Pio::OpenFlow::Action
action_header, method_missing, read, #to_binary
Constructor Details
#initialize(source, options = {}) ⇒ NiciraSendOutPort
Returns a new instance of NiciraSendOutPort.
25 26 27 28 29 30 31 32 33 |
# File 'lib/pio/open_flow13/nicira_send_out_port.rb', line 25 def initialize(source, = {}) @source = source super(_n_bits: ([:n_bits] || oxm_length * 8) - 1, _offset: [:offset] || 0, _source: { oxm_class: source_oxm_class.const_get(:OXM_CLASS), oxm_field: source_oxm_class.const_get(:OXM_FIELD), oxm_length: oxm_length }, max_length: [:max_length] || SendOutPort::NO_BUFFER) end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
35 36 37 |
# File 'lib/pio/open_flow13/nicira_send_out_port.rb', line 35 def source @source end |
Instance Method Details
#n_bits ⇒ Object
41 42 43 |
# File 'lib/pio/open_flow13/nicira_send_out_port.rb', line 41 def n_bits _n_bits + 1 end |
#offset ⇒ Object
37 38 39 |
# File 'lib/pio/open_flow13/nicira_send_out_port.rb', line 37 def offset _offset end |