Sha256: c6367dfd07e023fc1c23d7bdabfbc56753d74181b89d9e7ae49ac4572668e330
Contents?: true
Size: 820 Bytes
Versions: 8
Compression:
Stored size: 820 Bytes
Contents
Feature: switch_ready handler Background: Given 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
8 entries across 8 versions & 1 rubygems