Sha256: d0eedd8e4a3926b6ffd32b271f8e11e702e022cec0b7413f359d035299193ecf
Contents?: true
Size: 1.35 KB
Versions: 3
Compression:
Stored size: 1.35 KB
Contents
Feature: --openflow13 option Use --openflow13 option to enable OpenFlow 1.3 Background: Given I set the environment variables to: | variable | value | | TREMA_LOG_DIR | . | | TREMA_PID_DIR | . | | TREMA_SOCKET_DIR | . | And 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 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 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 sleep 5 Then the file "OpenflowVersion.log" should contain "ofp_version = 1"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trema-0.10.1 | features/trema_run/openflow13_option.feature |
trema-0.10.0 | features/trema_run/openflow13_option.feature |
trema-0.9.0 | features/trema_run/openflow13_option.feature |