Sha256: 580ff02e42fd7e8f255e6ef16c25b7264d7320f06cd6db19aabc3cad26724cc3

Contents?: true

Size: 1.18 KB

Versions: 14

Compression:

Stored size: 1.18 KB

Contents

Feature: dump_flows command

  In order to inspect all flow entries in a Trema virtual switch
  As a developer using Trema
  I want to execute "trema dump_flows" command

  Background:
    Given a file named "repeater_hub.conf" with:
      """
      vswitch("repeater_hub") { datapath_id 0xabc }

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

      link "repeater_hub", "host1"
      link "repeater_hub", "host2"
      link "repeater_hub", "host3"
      """
    And I successfully run `trema run ../../objects/examples/repeater_hub/repeater_hub -c repeater_hub.conf -d`

  @slow_process
  Scenario: dump a flow entry
    Given I run `trema send_packets --source host1 --dest host2`
    When I run `trema dump_flows repeater_hub`
    Then the output should contain "actions=FLOOD"

  @slow_process
  Scenario: no flow entry
    When I run `trema dump_flows repeater_hub`
    Then the output should not contain "actions="

  Scenario: no argument
    When I run `trema dump_flows`
    Then the output should contain "switches is required"

  Scenario: wrong switch name
    When I run `trema dump_flows nosuchswitch`
    Then the output should contain "No switch named `nosuchswitch` found!"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
trema-0.3.19 features/trema_commands/dump_flows.feature
trema-0.3.18 features/trema_commands/dump_flows.feature
trema-0.3.17 features/trema_commands/dump_flows.feature
trema-0.3.16 features/trema_commands/dump_flows.feature
trema-0.3.15 features/trema_commands/dump_flows.feature
trema-0.3.14 features/trema_commands/dump_flows.feature
trema-0.3.13 features/trema_commands/dump_flows.feature
trema-0.3.12 features/trema_commands/dump_flows.feature
trema-0.3.11 features/trema_commands/dump_flows.feature
trema-0.3.10 features/trema_commands/dump_flows.feature
trema-0.3.9 features/trema_commands/dump_flows.feature
trema-0.3.8 features/trema_commands/dump_flows.feature
trema-0.3.7 features/trema_commands/dump_flows.feature
trema-0.3.6 features/trema_commands/dump_flows.feature