To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaborator"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"
- Scenarios
-
- 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
- Then
- the file "../../tmp/log/packet_in.log" should contain "received a packet_in"
- 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
- Then
- the file "../../tmp/log/PacketInDumper.log" should contain "received a packet_in"
Last published over 7 years ago by y-higuchi.