Sha256: b625f9892af297cddf1435ed1f0a1668415bb0bb85eb43a8e454e83de138e09c

Contents?: true

Size: 1.81 KB

Versions: 28

Compression:

Stored size: 1.81 KB

Contents

Feature: Send a features request message

  In order to get the list of switch features
  As a Trema user
  I want to send a features request message to openflow switches

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

  @slow_process
  Scenario: Features Request message in C
    When I run `trema run ../../objects/examples/openflow_message/features_request -c features_request.conf -d`
     And wait until "features_request" is up
     And I run `trema killall`
    Then the file "../../tmp/log/features_request.log" should match /datapath_id: 0xabc/
     And the file "../../tmp/log/features_request.log" should match /n_buffers:/
     And the file "../../tmp/log/features_request.log" should match /n_tables:/
     And the file "../../tmp/log/features_request.log" should match /capabilities:/
     And the file "../../tmp/log/features_request.log" should match /actions:/
     And the file "../../tmp/log/features_request.log" should match /ports:/

  @slow_process
  Scenario: Feature Request message in Ruby
    When I run `trema run ../../src/examples/openflow_message/features-request.rb -c features_request.conf -d`
     And wait until "FeaturesRequestController" is up
     And I run `trema killall`
    Then the file "../../tmp/log/FeaturesRequestController.log" should match /datapath_id: 0xabc/
     And the file "../../tmp/log/FeaturesRequestController.log" should match /n_buffers:/
     And the file "../../tmp/log/FeaturesRequestController.log" should match /n_tables:/
     And the file "../../tmp/log/FeaturesRequestController.log" should match /capabilities:/
     And the file "../../tmp/log/FeaturesRequestController.log" should match /actions:/
     And the file "../../tmp/log/FeaturesRequestController.log" should match /ports:/

Version data entries

28 entries across 28 versions & 1 rubygems

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