Sha256: a1f845ae82221ae6d1607b53fa2c5b427a558a6990fd2dcb915917491f3bb4d5

Contents?: true

Size: 1.46 KB

Versions: 10

Compression:

Stored size: 1.46 KB

Contents

Feature: control one openflow switch using learning-switch controller

  As a Trema user
  I want to control one openflow switch using learning-switch controller
  So that I can send and receive packets


  Scenario: Send and receive packets
    Given I try trema run "learning_switch" example with following configuration (backgrounded):
      """
      vswitch("learning") { datapath_id "0xabc" }

      vhost("host1")
      vhost("host2")

      link "learning", "host1"
      link "learning", "host2"
      """
    When I send 1 packet from host1 to host2
      And I try to run "./trema show_stats host1 --tx" (log = "host1.learning_switch.log")
      And I try to run "./trema show_stats host2 --rx" (log = "host2.learning_switch.log")
    Then the content of "host1.learning_switch.log" and "host2.learning_switch.log" should be identical


  Scenario: Send and receive packets (in Ruby)
    Given I try trema run "learning-switch.rb" example with following configuration (backgrounded):
      """
      vswitch("learning") { datapath_id "0xabc" }

      vhost("host1")
      vhost("host2")

      link "learning", "host1"
      link "learning", "host2"
      """
    When I send 1 packet from host1 to host2
      And I try to run "./trema show_stats host1 --tx" (log = "host1.LearningSwitch.log")
      And I try to run "./trema show_stats host2 --rx" (log = "host2.LearningSwitch.log")
    Then the content of "host1.LearningSwitch.log" and "host2.LearningSwitch.log" should be identical

Version data entries

10 entries across 10 versions & 1 rubygems

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