Contents

NiciraRegMove

@open_flow13

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:
    fieldvalue
    n_bits48
    source:arp_sender_hardware_address
    source_offset0
    destination:arp_target_hardware_address
    destination_offset0

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:
    fieldvalue
    n_bits32
    source:reg0
    source_offset0
    destination:reg7
    destination_offset0

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:
    fieldvalue
    n_bits16
    source:reg0
    source_offset16
    destination:reg7
    destination_offset16

Source: features/open_flow13/nicira_reg_move.feature at commit 40dd0fb6, Pio (GPL license).