Sha256: bac694c2b556bad65b11cd372a75283ff70cc56514790f217c85613b9adf3cbf

Contents?: true

Size: 712 Bytes

Versions: 2

Compression:

Stored size: 712 Bytes

Contents

@open_flow13
Feature: NiciraStackPush

  Pushes field[offset: offset + n_bits] to top of the stack.

  Scenario: new(:reg0)
    When I create an OpenFlow action with:
      """
      Pio::NiciraStackPush.new(:reg0)
      """
    Then the action has the following fields and values:
      | field  | value |
      | offset |     0 |
      | n_bits |    32 |
      | field  | :reg0 |

  Scenario: new(:reg0, n_bits: 16, offset: 16)
    When I create an OpenFlow action with:
      """
      Pio::NiciraStackPush.new(:reg0, n_bits: 16, offset: 16)
      """
    Then the action has the following fields and values:
      | field  | value |
      | offset |    16 |
      | n_bits |    16 |
      | field  | :reg0 |

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pio-0.30.2 features/open_flow13/nicira_stack_push.feature
pio-0.30.1 features/open_flow13/nicira_stack_push.feature