Sha256: 81646481c67eac7318f829ef0881a8bcaf91859c1b5795539002b1c218857777

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 KB

Contents

Feature: --openflow13 option

  Use --openflow13 option to enable OpenFlow 1.3

  Background:
    Given a file named "openflow_version.rb" with:
      """ruby
      class OpenflowVersion < Trema::Controller
        def switch_ready(dpid)
          send_message dpid, Echo::Request.new
        end

        def echo_reply(dpid, message)
          logger.info "ofp_version = #{message.ofp_version}"
        end
      end
      """
    And a file named "trema.conf" with:
      """ruby
      vswitch { datapath_id 0xabc }
      """

  @sudo
  Scenario: --openflow13 option
    When I successfully run `trema run openflow_version.rb --openflow13 -c trema.conf -d`
    And I run `sleep 5`
    Then the file "OpenflowVersion.log" should contain "ofp_version = 4"

  @sudo
  Scenario: --no-openflow13 option
    When I successfully run `trema run openflow_version.rb --no-openflow13 -c trema.conf -d`
    And I run `sleep 5`
    Then the file "OpenflowVersion.log" should contain "ofp_version = 1"

  @sudo
  Scenario: the default OpenFlow version is 1.0
    When I successfully run `trema run openflow_version.rb -c trema.conf -d`
    And I run `sleep 5`
    Then the file "OpenflowVersion.log" should contain "ofp_version = 1"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trema-0.8.4 features/trema_run/openflow13_option.feature
trema-0.8.3 features/trema_run/openflow13_option.feature
trema-0.8.2 features/trema_run/openflow13_option.feature
trema-0.8.1 features/trema_run/openflow13_option.feature
trema-0.8.0 features/trema_run/openflow13_option.feature
trema-0.7.1 features/trema_run/openflow13_option.feature
trema-0.7.0 features/trema_run/openflow13_option.feature
trema-0.6.0 features/trema_run/openflow13_option.feature