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

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