Sha256: 5a1d079ab5e39db64ad9acdfbc3ca1d3ee239fea45f4ad0fd15c7e4099950f22

Contents?: true

Size: 1.72 KB

Versions: 32

Compression:

Stored size: 1.72 KB

Contents

Feature: Send hello messages

  In order to start conversations with switches
  As a Trema user
  I want to send hello messages to openflow switches

  @slow_process
  Scenario: Hello message in C
    Given a file named "hello.conf" with:
      """
      custom_switch("hello") { 
        datapath_id "0xabc" 
        path "./objects/examples/openflow_switch/hello_switch"
      }
      """
    When I run `trema run "../../objects/examples/openflow_message/hello 10" -c hello.conf -d`
      And wait until "hello" is up
      And I run `trema killall`
    Then the file "../../tmp/log/customswitch.hello.log" should contain:
      """
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      """

  @slow_process
  Scenario: Hello message in Ruby
    Given a file named "hello-r.conf" with:
      """
      custom_switch("hello-r") { 
        datapath_id "0xabc" 
        path "./objects/examples/openflow_switch/hello_switch"
      }
      """
    When I run `trema run "../../src/examples/openflow_message/hello.rb 10" -c hello-r.conf -d`
      And wait until "HelloController" is up
      And I run `trema killall`
    Then the file "../../tmp/log/customswitch.hello-r.log" should contain:
      """
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      received: OFPT_HELLO
      """

Version data entries

32 entries across 32 versions & 1 rubygems

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