Sha256: a70cccc4b212e3e5d897bcbe65cbfc6c82e466b5cb3a5cb5c43403777c2bb15b

Contents?: true

Size: 930 Bytes

Versions: 32

Compression:

Stored size: 930 Bytes

Contents

Feature: "List Switches" sample application

  In order to learn how to get the list of OpenFlow switches
  As a developer using Trema
  I want to execute "List Switches" sample application

  Background:
    Given a file named "list_switches.conf" with:
      """
      vswitch { datapath_id 0x1 }
      vswitch { datapath_id 0x2 }
      vswitch { datapath_id 0x3 }
      vswitch { datapath_id 0x4 }
      """

  @slow_process
  Scenario: Run "List Switches" C example
    Given I run `trema run ../../objects/examples/list_switches/list_switches -c list_switches.conf`
    Then the file "../../tmp/log/list_switches.log" should contain "switches = 0x1, 0x2, 0x3, 0x4"

  @slow_process
  Scenario: Run "List Switches" Ruby example
    Given I run `trema run ../../src/examples/list_switches/list-switches.rb -c list_switches.conf`
    Then the file "../../tmp/log/ListSwitches.log" should contain "switches = 0x1, 0x2, 0x3, 0x4"

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
trema-0.4.6 features/examples/list_switches.feature
trema-0.4.5 features/examples/list_switches.feature
trema-0.4.4 features/examples/list_switches.feature
trema-0.4.3 features/examples/list_switches.feature
trema-0.4.2 features/examples/list_switches.feature
trema-0.4.1 features/examples/list_switches.feature
trema-0.4.0 features/examples/list_switches.feature
trema-0.3.21 features/examples/list_switches.feature
trema-0.3.20 features/examples/list_switches.feature
trema-0.3.19 features/examples/list_switches.feature
trema-0.3.18 features/examples/list_switches.feature
trema-0.3.17 features/examples/list_switches.feature
trema-0.3.16 features/examples/list_switches.feature
trema-0.3.15 features/examples/list_switches.feature
trema-0.3.14 features/examples/list_switches.feature
trema-0.3.13 features/examples/list_switches.feature
trema-0.3.12 features/examples/list_switches.feature
trema-0.3.11 features/examples/list_switches.feature
trema-0.3.10 features/examples/list_switches.feature
trema-0.3.9 features/examples/list_switches.feature