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.3.8 features/examples/list_switches.feature
trema-0.3.7 features/examples/list_switches.feature
trema-0.3.6 features/examples/list_switches.feature
trema-0.3.5 features/example.list_switches.feature
trema-0.3.4 features/example.list_switches.feature
trema-0.3.3 features/example.list_switches.feature
trema-0.3.2 features/example.list_switches.feature
trema-0.3.1 features/example.list_switches.feature
trema-0.3.0 features/example.list_switches.feature
trema-0.2.8 features/example.list_switches.feature
trema-0.2.7 features/example.list_switches.feature
trema-0.2.6 features/example.list_switches.feature