Files
os-ken/ryu/tests/mininet/l2/vlan/PopVLAN_vlanvlan.mn
HIYAMA Manabu 24d894bc95 test: add mininet-test suite
This patch adds a test framework using mininet. The following tests
can be performed.

- Set the flow for the OVS-switch from Ryu-app, we test the actual
  packet is to be handled properly in accordance with the flow; The
  packet that generated by "mz" or replayed by "tcpreplay" is routed
  through the ovs-switch, are processed according to the flow, then
  compare test conditions and the results captured by "tshark".

- Create a packet with ryu using the packet-lib, we test the packet
  and response are correct; to compare test conditions and the results
  captured by "tshark".

  $ ./run_mnet-test.sh [OPTION] [TEST DIR or FILE]...
  $ ./run_mnet-test.sh l2 l3/icmp packet_lib/arp/ARP_gratuitous.mn
  $ ./run_mnet-test.sh --help

Requirements package:
 - mininet: git://github.com/mininet/mininet.git
 - openvswitch: git://openvswitch.org/openvswitch
 - Mausezahn 0.40: http://www.perihel.at/sec/mz/
 - TShark 1.6.2: http://www.wireshark.org/
 - tcpreplay 3.4: http://tcpreplay.synfin.net/

Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-01-29 18:35:01 +09:00

7 lines
183 B
Plaintext

TEST_NAME=VLAN:VLAN-PopVLAN
DUMP_HOST=h2
DUMP_IF=h2-eth0
RYU_APP=test_vlan
PCAP_MZ="-t tcp -Q 100,99 -P $TEST_NAME -c 3 -r"
PCAP_FILTER="vlan.id!=100 && vlan.id==99 && ip.proto==TCP"