Sha256: de27d98a21d5833ccaa948aeb1e68a1ea46f11a109ad69f9e37947602184de2c

Contents?: true

Size: 1.43 KB

Versions: 10

Compression:

Stored size: 1.43 KB

Contents

Feature: "Getting switch info" sample application

  As a Trema user
  I want to write "Getting switch info" application
  So that I can learn how to acquire the information of openflow switches


  Scenario: Getting switch info in C
    When I try trema run "./objects/examples/switch_info/switch_info" with following configuration:
      """
      vswitch { datapath_id "0xabc" }
      """
    Then the output should include:
      """
      datapath_id: 0xabc
      #ports: 1
      """


  Scenario: Getting switch info in C
    When I try trema run "./objects/examples/switch_info/switch_info" with following configuration:
      """
      vswitch { datapath_id "0xabc" }
      vswitch { datapath_id "0xdef" }
      link "0xabc", "0xdef"
      """
    Then the output should include:
      """
      #ports: 2
      """


  Scenario: Getting switch info in Ruby
    When I try trema run "./src/examples/switch_info/switch_info.rb" with following configuration:
      """
      vswitch { datapath_id "0xabc" }
      """
    Then the output should include:
      """
      datapath_id: 0xabc
      ports: 65534
      """


  Scenario: Getting switch info in Ruby
    When I try trema run "./src/examples/switch_info/switch_info.rb" with following configuration:
      """
      vswitch { datapath_id "0xabc" }
      vswitch { datapath_id "0xdef" }
      link "0xabc", "0xdef"
      """
    Then the output should include:
      """
      ports: 1, 65534
      """

Version data entries

10 entries across 10 versions & 1 rubygems

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