20. $ cat trema.conf
vswitch { datapath_id 0xabc }
$ ./bin/trema run ./lib/hello_trema.rb -c trema.conf
Trema started.
Hello 0xabc!
^C%
$ cat /tmp/HelloTrema.log
# Logfile created on 2015-08-07 21:42:26 +0900 by logger.rb/41954
I, [2015-08-07T21:42:26.484872 #7287] INFO -- : Trema started.
I, [2015-08-07T21:42:26.745980 #7287] INFO -- : Hello 0xabc!
hello_trema
21.
22. Then the output should contain:
"""
Hello, World!
"""
When I trema run "foo.rb" with the configuration "bar.conf"
Then the number of packets received by "host1" should be:
| source | #packets |
| 192.168.0.2 | 2 |
When I trema send_packets as follows:
| source | destination | #packets |
| 192.168.0.1 | 192.168.0.2 | 10 |
Given a file named "trema.conf" with:
"""
vswitch('learning') { datapath_id 0xabc }
"""
Given I use OpenFlow 1.3