Sha256: 88947411ba988b2c15c0762c2d3549c77c3cc6ec09eaa8c98482000fe53464b4
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
Feature: "Packet In" sample application In order to learn how to handle Packet In messages As a developer using Trema I want to execute "Packet In" sample application Background: Given a file named "packet_in.conf" with: """ vswitch("packet_in") { dpid 0xabc } vhost("host1") vhost("host2") link "packet_in", "host1" link "packet_in", "host2" """ @slow_process Scenario: Run "Packet In" C example Given I run `trema run ../../objects/examples/packet_in/packet_in -c packet_in.conf -d` And wait until "packet_in" is up When I send 1 packet from host1 to host2 And *** sleep 1 *** Then the file "../../tmp/log/packet_in.log" should contain "received a packet_in" @slow_process Scenario: Run "Packet In" Ruby example Given I run `trema run ../../src/examples/packet_in/packet-in.rb -c packet_in.conf -d` And wait until "PacketInDumper" is up When I send 1 packet from host1 to host2 And *** sleep 1 *** Then the file "../../tmp/log/PacketInDumper.log" should contain "received a packet_in"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trema-0.4.6 | features/examples/packet_in.feature |
trema-0.4.5 | features/examples/packet_in.feature |