| 1 | The following instructions are for installing the ODL controller on Ubuntu version 13.04. |
| 2 | |
| 3 | = Installing the ODL Controller = |
| 4 | |
| 5 | The SDN controller used in the MF SDN prototype is the Open Daylight Controller. The release version is Hydrogen and we use the Base edition. |
| 6 | |
| 7 | Required Packages |
| 8 | |
| 9 | {{{ |
| 10 | sudo apt-get update |
| 11 | sudo apt-get install git maven openjdk-7-jdk openjdk-7-jre |
| 12 | }}} |
| 13 | The pre-built version of the controller can be downloaded at the following link [http://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distributions-base/0.1.1/distributions-base-0.1.1-osgipackage.zip Open Dayligth Controller Hydrogen Base Edition] |
| 14 | |
| 15 | Download and unzip the controller in a Linux machine. The controller was tested to work in Ubuntu 13.04. |
| 16 | |
| 17 | {{{ |
| 18 | unzip distributions-base-0.1.1-osgipackage.zip |
| 19 | }}} |
| 20 | For more details, visit the controller installation guide at: https://wiki.opendaylight.org/view/Release/Hydrogen/Base/Installation_Guide#Installing |
| 21 | |
| 22 | = Developing !OpenFlow 1.3 Modules with the Controller = |
| 23 | |
| 24 | For developing applications and running the controller with OF 1.3, download the openflowplugin from git at the following link: |
| 25 | |
| 26 | {{{ |
| 27 | git clone https://git.opendaylight.org/gerrit/p/openflowplugin.git |
| 28 | }}} |
| 29 | A sample application for a Learning switch is provided by the plugin. For learning to develop new modules as applications, this is a good starting point. |
| 30 | |
| 31 | Build the application: |
| 32 | |
| 33 | {{{ |
| 34 | cd openflowplugin/samples/learning-switch/ |
| 35 | mvn clean install |
| 36 | }}} |
| 37 | For running the learning switch application,do the following steps |
| 38 | |
| 39 | {{{ |
| 40 | rm opendaylight/plugins/org.opendaylight.controller.samples.simpleforwarding-0.4.1.jar |
| 41 | }}} |
| 42 | Copy the 'learning-switch-0.0.3-SNAPSHOT.jar' bundle into the ‘opendaylight/plugins' folder. |
| 43 | |
| 44 | To run the controller with OF 1.3: |
| 45 | |
| 46 | {{{ |
| 47 | cd opendaylight |
| 48 | |
| 49 | ./run.sh -of13 |
| 50 | }}} |
| 51 | To test if the learning switch is working, on the controller console: |
| 52 | |
| 53 | {{{ |
| 54 | osgi > lb learn |
| 55 | }}} |
| 56 | Now you can see the controller installing flow rules when you test the network by pinging nodes. |
| 57 | |
| 58 | For more details and information for developing applications you can visit the Open Daylight wiki at: https://wiki.opendaylight.org/view/OpenDaylight_Controller:Hydrogen_Developer_Guide:MD-SAL_App_Tutorial |