Sha256: ac2674bd71ce048ba444b6a3b19967cc243eafdde8de9dd17e9605de14206ed7

Contents?: true

Size: 1.25 KB

Versions: 10

Compression:

Stored size: 1.25 KB

Contents

Feature: Get the list of openflow switches with list_switches

  As a Trema user
  I want to get the list of openflow switches
  So that I can check how many switches are connected to my controller


  Scenario: Get the list of openflow switches
    Given I try trema run "./objects/examples/list_switches/list_switches" with following configuration (backgrounded):
      """
      vswitch { datapath_id "0x1" }
      vswitch { datapath_id "0x2" }
      vswitch { datapath_id "0x3" }
      vswitch { datapath_id "0x4" }
      """
      And wait until "list_switches" is up
      And *** sleep 2 ***
      And I terminated all trema services
    Then the output should include:
      """
      switches = 0x1, 0x2, 0x3, 0x4
      """

  Scenario: Get the list of openflow switches (in Ruby)
    Given I try trema run "./src/examples/list_switches/list-switches.rb" with following configuration (backgrounded):
      """
      vswitch { datapath_id "0x1" }
      vswitch { datapath_id "0x2" }
      vswitch { datapath_id "0x3" }
      vswitch { datapath_id "0x4" }
      """
      And wait until "ListSwitches" is up
      And *** sleep 2 ***
      And I terminated all trema services
    Then the output should include:
      """
      switches = 0x1, 0x2, 0x3, 0x4
      """

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
trema-0.2.5 features/example.list_switches.feature
trema-0.2.4 features/example.list_switches.feature
trema-0.2.3 features/example.list_switches.feature
trema-0.2.2.1 features/example.list_switches.feature
trema-0.2.2 features/example.list_switches.feature
trema-0.2.1 features/example.list_switches.feature
trema-0.2.0 features/example.list_switches.feature
trema-0.1.3.2 features/example.list_switches.feature
trema-0.1.3.1 features/example.list_switches.feature
trema-0.1.3 features/example.list_switches.feature