| | 1 | = The !FloodLight Controller. = |
| | 2 | !FloodLight is an open-source, Java-based controller distributed by Big Switch Networks. |
| | 3 | == I. Installation. == |
| | 4 | The following describes the installation of !FloodLight on an Ubuntu 11.04 (natty) system. Installation is described on their [http://floodlight.openflowhub.org/getting-started/ website], but will be repeated here. If you are using SSH, You may want X11 forwarding to be able to launch Eclipse later on.[[BR]] |
| | 5 | |
| | 6 | 1. install the dependencies: |
| | 7 | {{{ |
| | 8 | apt-get install build-essential default-jdk ant python-dev git-core eclipse |
| | 9 | }}} |
| | 10 | |
| | 11 | 2. pull sources from github, and build: |
| | 12 | {{{ |
| | 13 | git clone git://github.com/floodlight/floodlight.git |
| | 14 | cd floodlight/ |
| | 15 | git checkout stable |
| | 16 | ant; |
| | 17 | }}} |
| | 18 | |
| | 19 | 3. launching the controller - there are two ways to do this - through eclipse, or directly through java (both in the floodlight/ directory): |
| | 20 | {{{ |
| | 21 | java -jar target/floodlight.jar |
| | 22 | }}} |
| | 23 | or as an Eclipse project - first set up Eclipse: |
| | 24 | {{{ |
| | 25 | ant eclipse; |
| | 26 | }}} |
| | 27 | then import Floodlight as a project (verbatim from the website): |
| | 28 | * Open eclipse and create a new workspace |
| | 29 | * File -> Import -> General -> Existing Projects into Workspace. Then click “Next”. |
| | 30 | * From “Select root directory” click “Browse”. Select the parent directory where you placed floodlight earlier. |
| | 31 | * Check the box for “Floodlight”. No other Projects should be present and none should be selected. |
| | 32 | * Click Finish. |