Sha256: 2a10f33e4b611882725798a15e5bfe90fae53d1d6a4cfe8c2941c29bb3d9d3bd
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 KB
Contents
Feature: switch_disconnected handler Background: Given a file named "switch_disconnected.rb" with: """ruby class SwitchDisconnected < Trema::Controller def switch_disconnected(dpid) logger.info "Switch #{dpid.to_hex} is disconnected." end end """ And a file named "trema.conf" with: """ruby vswitch { datapath_id 0xabc } """ @sudo Scenario: invoke switch_disconnected handler Given I use OpenFlow 1.0 And I trema run "switch_disconnected.rb" with the configuration "trema.conf" When I successfully run `trema stop 0xabc` Then the file "SwitchDisconnected.log" should contain: """ Switch 0xabc is disconnected. """ @sudo Scenario: invoke switch_disconnected handler (OpenFlow 1.3) Given I use OpenFlow 1.3 And I trema run "switch_disconnected.rb" with the configuration "trema.conf" When I successfully run `trema stop 0xabc` Then the file "SwitchDisconnected.log" should contain: """ Switch 0xabc is disconnected. """
Version data entries
8 entries across 8 versions & 1 rubygems