Sha256: ae91db932185975d3677f83df40c003832f691ac367aea72977701cb459827aa

Contents?: true

Size: 1018 Bytes

Versions: 3

Compression:

Stored size: 1018 Bytes

Contents

Feature: trema start command
  Background:
    Given I set the environment variables to:
      | variable         | value |
      | TREMA_LOG_DIR    | .     |
      | TREMA_PID_DIR    | .     |
      | TREMA_SOCKET_DIR | .     |
    And a file named "packet_in_controller.rb" with:
      """
      class PacketInController < Trema::Controller
        def packet_in(dpid, message)
          logger.info 'new packet_in'
        end
      end
      """
    And a file named "trema.conf" with:
      """
      vswitch { datapath_id 0xabc }
      vhost('host1') { ip '192.168.0.1' }
      vhost('host2') { ip '192.168.0.2' }
      link '0xabc', 'host1'
      link '0xabc', 'host2'
      """
    And I run `trema run packet_in_controller.rb -c trema.conf -d`

  @sudo
  Scenario: trema delete_link 0xabc host1
    When I successfully run `trema delete_link 0xabc host1`
    And I successfully run `trema send_packets --source host1 --dest host2`
    Then the file "PacketInController.log" should not contain "new packet_in"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trema-0.5.1 features/trema_delete_link.feature
trema-0.5.0 features/trema_delete_link.feature
trema-0.4.8 features/trema_delete_link.feature