openflow: Update build instructions
This commit is contained in:
@@ -138,22 +138,23 @@ To do this:
|
||||
|
||||
1. Obtain the OFSID code.
|
||||
An ns-3 specific OFSID branch is provided to ensure
|
||||
operation with ns-3. Use mercurial to download this branch and ns3 to build
|
||||
operation with ns-3. Use Git to download this branch and CMake to build
|
||||
the library::
|
||||
|
||||
$ hg clone http://code.nsnam.org/openflow
|
||||
$ git clone https://gitlab.com/nsnam/openflow
|
||||
$ cd openflow
|
||||
|
||||
From the "openflow" directory, run::
|
||||
|
||||
$ ./waf configure
|
||||
$ ./waf build
|
||||
$ cmake -B build -D CMAKE_INSTALL_PREFIX=./out .
|
||||
$ cmake --build build
|
||||
$ cmake --install build
|
||||
|
||||
2. Your OFSID is now built into a libopenflow.a library!
|
||||
To link to an ns-3 build with this OpenFlow switch module, run from the ns-3-dev
|
||||
(or whatever you have named your distribution)::
|
||||
|
||||
$ ./ns3 configure --enable-examples --enable-tests --with-openflow=path/to/openflow
|
||||
$ ./ns3 configure --enable-examples --enable-tests --with-openflow=path/to/openflow/out
|
||||
|
||||
3. Under ``---- Summary of optional NS-3 features:`` you should see:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user