Sha256: eb5e4425678afbbbbd4de8275ad9d2af9dfe78a737f2ee1db59708e0974c3b79
Contents?: true
Size: 1004 Bytes
Versions: 3
Compression:
Stored size: 1004 Bytes
Contents
Feature: switch_ready handler Background: Given I set the environment variables to: | variable | value | | TREMA_LOG_DIR | . | | TREMA_PID_DIR | . | | TREMA_SOCKET_DIR | . | And a file named "switch_ready.rb" with: """ruby class SwitchReady < Trema::Controller def switch_ready(dpid) logger.info format('Hello %s!', dpid.to_hex) end end """ And a file named "trema.conf" with: """ruby vswitch { datapath_id 0xabc } """ @sudo Scenario: invoke switch_ready handler Given I use OpenFlow 1.0 When I trema run "switch_ready.rb" with the configuration "trema.conf" Then the file "SwitchReady.log" should contain "Hello 0xabc!" @sudo Scenario: invoke switch_ready handler (OpenFlow 1.3) Given I use OpenFlow 1.3 When I trema run "switch_ready.rb" with the configuration "trema.conf" Then the file "SwitchReady.log" should contain "Hello 0xabc!"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trema-0.10.1 | features/handlers/switch_ready.feature |
trema-0.10.0 | features/handlers/switch_ready.feature |
trema-0.9.0 | features/handlers/switch_ready.feature |