Sha256: c022f4ab73d8e035467f16b6d2176c297315a5e52cf34fdabd07aeb35e92196f

Contents?: true

Size: 1.02 KB

Versions: 32

Compression:

Stored size: 1.02 KB

Contents

Feature: "Patch Panel" sample application

  In order to learn how to implement software patch panel
  As a developer using Trema
  I want to execute "Patch Panel" sample application

  @slow_process
  Scenario: Run "Patch Panel" Ruby example
    Given a file named "patch-panel.conf" with:
      """
      1 2
      """
     And a file named "network.conf" with:
      """
      vswitch("patch") { datapath_id "0xabc" }

      vhost("host1") { ip "192.168.0.1" }
      vhost("host2") { ip "192.168.0.2" }

      link "patch", "host1"
      link "patch", "host2"
      """
     And I run `trema run ../../src/examples/patch_panel/patch-panel.rb -c network.conf -d`
     And wait until "PatchPanel" is up
    When I send 1 packet from host1 to host2
     And I run `trema show_stats host1 --tx`
     And I run `trema show_stats host2 --rx`
    Then the output from "trema show_stats host1 --tx" should contain "192.168.0.2,1,192.168.0.1,1,1,50"
     And the output from "trema show_stats host2 --rx" should contain "192.168.0.2,1,192.168.0.1,1,1,50"

Version data entries

32 entries across 32 versions & 1 rubygems

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