Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Floodlight is simple to download from Github and build.

Installing Floodlight from Scratch


Code Block
xml
xml
$ git clone git://github.com/floodlight/floodlight.git
$ cd floodlight
$ git submodule init
$ git submodule update
$ ant

$ sudo mkdir /var/lib/floodlight
$ sudo chmod 777 /var/lib/floodlight
Info
The above "git clone" uses the master version of Floodlight. To use a specific version, specify the version branch in the git step by appending -b <branch-name>.

Updating Floodlight to Master or a Newer Version

The following steps show how to update Floodlight to master. Substitute "master" in "git pull" with your desired version's branch, e.g. "v1.1", "v1.2", etc. if you would like to switch to a different version.


Code Block
languagebash
$ cd floodlight
$ git pull origin master
$ git submodule init
$ git submodule update

If you are upgrading from Floodlight v1.2 or below to a newer version or the master branch, you should update to Java 8 at this point. Others should already have Java 8 installed. Once you have Java 8, proceed with re-building the controller:

Code Block
languagebash
$ ant

Running Floodlight in the Terminal

...