]> git.proxmox.com Git - mirror_ovs.git/blame - README-OFTest
netdev-linux: Fix build break on RHEL 6.1.
[mirror_ovs.git] / README-OFTest
CommitLineData
81a114e5
BP
1 How to Use OFTest With Open vSwitch
2 ===================================
3
4This document describes how to use the OFTest OpenFlow protocol
5testing suite with Open vSwitch in "dummy mode". In this mode of
6testing, no packets travel across physical or virtual networks.
7Instead, Unix domain sockets stand in as simulated networks. This
8simulation is imperfect, but it is much easier to set up, does not
9require extra physical or virtual hardware, and does not require
10supervisor privileges.
11
12Prerequisites
13-------------
14
15First, build Open vSwitch according to the instructions in INSTALL.
16You need not install it.
17
18Second, obtain a copy of OFTest and install its prerequisites. You
19need a copy of OFTest that includes commit 406614846c5 (make ovs-dummy
20platform work again). This commit was merged into the OFTest
21repository on Feb 1, 2013, so any copy of OFTest more recent than that
22should work.
23
24Testing OVS in dummy mode does not require root privilege, so you may
25ignore that requirement.
26
27Optionally, add the top-level OFTest directory (containing the "oft"
28program) to your $PATH. This slightly simplifies running OFTest later.
29
30Running OFTest
31--------------
32
33To run OFTest in dummy mode, run the following command from your Open
34vSwitch build directory:
35
36 make check-oftest OFT=<oft-binary>
37
38where <oft-binary> is the absolute path to the "oft" program in
39OFTest.
40
41If you added "oft" to your $PATH, you may omit the OFT variable
42assignment:
43
44 make check-oftest
45
46By default, "check-oftest" passes "oft" just enough options to enable
47dummy mode. You can use OFTFLAGS to pass additional options. For
48example, to run just the basic.Echo test instead of all tests (the
49default) and enable verbose logging:
50
51 make check-oftest OFT=<oft-binary> OFTFLAGS='--verbose -T basic.Echo'
52
91a5b5be
BP
53If you use OFTest that does not include commit 4d1f3eb2c792 (oft:
54change default port to 6653), merged into the OFTest repository in
55October 2013, then you need to add an option to use the IETF-assigned
56controller port:
57
58 make check-oftest OFT=<oft-binary> OFTFLAGS='--port=6653'
59
81a114e5
BP
60Interpreting OFTest Results
61---------------------------
62
63Please interpret OFTest results cautiously. Open vSwitch can fail a
64given test in OFTest for many reasons, including bugs in Open vSwitch,
65bugs in OFTest, bugs in the "dummy mode" integration, and differing
66interpretations of the OpenFlow standard and other standards.
67
68Open vSwitch has not been validated against OFTest. Please do report
69test failures that you believe to represent bugs in Open vSwitch.
70Include the precise versions of Open vSwitch and OFTest in your bug
71report, plus any other information needed to reproduce the problem.
72
73Contact
74-------
75
76bugs@openvswitch.org
77http://openvswitch.org/