trema / Pio / Docs / Open flow13
NiciraRegMove
Copies source[source_offset:sourcce_offset+n_bits] to destination[destination_offset:dst_ofs+n_bits], where a[b:c] denotes the bits within 'a' numbered 'b' through 'c' (not including bit 'c').
Scenario: new(source: :arp_sender_hardware_address, destination: :arp_target_hardware_address)
- When I create an OpenFlow action with:
Pio::NiciraRegMove.new(source: :arp_sender_hardware_address, destination: :arp_target_hardware_address) - Then the action has the following fields and values:
field value n_bits 48 source :arp_sender_hardware_address source_offset 0 destination :arp_target_hardware_address destination_offset 0
Scenario: new(source: :reg0, destination: :reg7)
- When I create an OpenFlow action with:
Pio::NiciraRegMove.new(source: :reg0, destination: :reg7) - Then the action has the following fields and values:
field value n_bits 32 source :reg0 source_offset 0 destination :reg7 destination_offset 0
Scenario: new(source: :reg0, source_offset: 16, destination: :reg7, destination_offset: 16, n_bits: 16)
- When I create an OpenFlow action with:
Pio::NiciraRegMove.new(source: :reg0, source_offset: 16, destination: :reg7, destination_offset: 16, n_bits: 16) - Then the action has the following fields and values:
field value n_bits 16 source :reg0 source_offset 16 destination :reg7 destination_offset 16
Source: features/open_flow13/nicira_reg_move.feature at commit 40dd0fb6, Pio (GPL license).