Getting Started

You can run all unit tests by

> cd indigo2/tools
> ./precheckin.py

You must build the components before running LRI. The precheckin script will do that for you.

If you have OFTest checked out (say in /opt/oftest) you can run LRI (the reference switch) against OFTest from the same directory:

> cd indigo2/tools
> sudo OFTEST=/opt/oftest ./oftest-lri.py -T all

Running 'make tests' at the top level will also run unit tests for all modules.

Running make in targets/LRI will build the Linux Reference Implementation (requires libpcap-dev). The result will be placed in targets/LRI/build/bin/lri (or targets/LRI/build/gcc-local/bin/lri). Currently this is passing most OFTest cases (git clone git@github.com:floodlight/oftest.git).

Note that dpctl will work against LRI when a "local" (or "listening") interface is configured with -L.