Logo: Relish

  1. Sign in

Project: Trema-testbed

"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
  • @slow_process
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"
  • @slow_process
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.