Sha256: 99719693131e91cf4ecfc1e4ac61a9ad21c3711aa8652c6cf845191da7130b2d
Contents?: true
Size: 1.56 KB
Versions: 10
Compression:
Stored size: 1.56 KB
Contents
Feature: send packets with `trema send_packets' command As a Trema user I want to send network packets with `trema send_packets' command So that I can easily debug trema applications Background: Given I try trema run "learning_switch" example with following configuration (backgrounded): """ vswitch { datapath_id "0xabc" } vhost("host1") { ip "192.168.0.1" } vhost("host2") { ip "192.168.0.2" } link "0xabc", "host1" link "0xabc", "host2" """ Scenario: send_packets error (--source) Then "./trema send_packets --source NO_SUCH_HOST --dest host2" exits abnormally with an error message: """ Unknown host: NO_SUCH_HOST """ Scenario: send_packets error (--dest) Then "./trema send_packets --dest host1 --dest NO_SUCH_HOST" exits abnormally with an error message: """ Unknown host: NO_SUCH_HOST """ Scenario: trema help send_packets When I try to run "./trema help send_packets" Then the output should be: """ Usage: ./trema send_packets --source HOSTNAME --dest HOSTNAME [OPTIONS ...] -s, --source HOSTNAME --inc_ip_src [NUMBER] -d, --dest HOSTNAME --inc_ip_dst [NUMBER] --tp_src NUMBER --inc_tp_src [NUMBER] --tp_dst NUMBER --inc_tp_dst [NUMBER] --pps NUMBER --n_pkts NUMBER --duration NUMBER --length NUMBER --inc_payload [NUMBER] -h, --help -v, --verbose """
Version data entries
10 entries across 10 versions & 1 rubygems