Sha256: 0d73ceb870d354b9926c79f0fdca24f28f8d1115693f7e2a8c2a08b2426aa559

Contents?: true

Size: 862 Bytes

Versions: 8

Compression:

Stored size: 862 Bytes

Contents

Feature: delete_link
  @sudo
  Scenario: trema delete_link 0xabc host1
    Given a file named "packet_in_controller.rb" with:
      """ruby
      class PacketInController < Trema::Controller
        def packet_in(dpid, message)
          logger.info 'new packet_in'
        end
      end
      """
    And a file named "trema.conf" with:
      """ruby
      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`
    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"

  @wip
  Scenario: "link not found" error

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trema-0.8.4 features/trema_delete_link/delete_link.feature
trema-0.8.3 features/trema_delete_link/delete_link.feature
trema-0.8.2 features/trema_delete_link/delete_link.feature
trema-0.8.1 features/trema_delete_link/delete_link.feature
trema-0.8.0 features/trema_delete_link/delete_link.feature
trema-0.7.1 features/trema_delete_link/delete_link.feature
trema-0.7.0 features/trema_delete_link/delete_link.feature
trema-0.6.0 features/trema_delete_link/delete_link.feature