Sha256: 8a7515d8c2bbbb6ea6a15cc661435704e9882af537f9276a1e4c032b32578c40

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

@open_flow13
Feature: NiciraSendOutPort

  Outputs to the OpenFlow port number written to source[offset:offset+n_bits]

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

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