Changes between Version 4 and Version 5 of GEC19Agenda/IntroToOFOpenDaylight/Execute
- Timestamp:
- 03/14/14 02:39:32 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC19Agenda/IntroToOFOpenDaylight/Execute
v4 v5 25 25 From host1-lan0 (10.10.1.1) icmp_seq=16 Destination Host Unreachable 26 26 From host1-lan0 (10.10.1.1) icmp_seq=17 Destination Host Unreachable 27 27 ^C 28 28 }}} 29 29 30 30 == Step 2: Log into OVS host and compile and run controller == 31 31 32 {{{ 32 33 The OVS image has a bunch of Java .jar packages already downloaded by Apache Maven. These are currently stored in /local/m2, so let's first move them to our home folders so that compiling the Opendaylight application doesn't have to re-download everything again. 34 35 {{{ 36 anirudhr@ovs:~$ sudo cp -r /local/m2 ~/.m2 # move it to our home directory as .m2 37 anirudhr@ovs:~$ sudo chown -R $USER ~/.m2 # change ownership to your current user 38 }}} 39 40 With that done, let's jump into the code. First, checkout the controller from Github 41 42 {{{ 43 anirudhr@ovs:~$ git clone git://github.com/sdnhub/SDNHub_Opendaylight_Tutorial 33 44 anirudhr@ovs:~$ cd SDNHub_Opendaylight_Tutorial/ 34 anirudhr@ovs:~/SDNHub_Opendaylight_Tutorial$ git pull origin master # update the codebase35 45 anirudhr@ovs:~/SDNHub_Opendaylight_Tutorial$ cd commons/parent/ 36 46 anirudhr@ovs:~/SDNHub_Opendaylight_Tutorial/commons/parent$ mvn clean install -DskipTests -DskipIT … … 56 66 This indicates that the build went successfully. 57 67 58 Open another terminal on the OVS (Note: you can use screen if you wish) and go to the built controller and run it. 68 Open another console on the OVS (Note: you can use GNU Screen if you wish) and go to the built controller and run it. 69 59 70 {{{ 60 71 anirudhr@ovs$ cd ~/SDNHub_Opendaylight_Tutorial/distribution/opendaylight/target/distribution.tutorial_L2_forwarding-1.0.0-SNAPSHOT-osgipackage/opendaylight … … 62 73 }}} 63 74 64 Now you will see a huge bunch of text/logs. You may see some Exceptions but you can ignore it for the moment. Once the diagnostics die down, press Enter a few times and you will see an [[http://www.osgi.org/Specifications/HomePage OSGi]] console. OSGi is a modular way of developing enterprise-grade applications that allows built-in plugin architecture, module versioning, dependency management, etc. Opendaylight is built as a collection of 200+ OSGi bundle, each of which can be stopped, started, uninstalled, or upgraded without affecting the rest of the controller.75 Now you will see a bunch of text/logs scrolling by. You may see some Exceptions but you can ignore it for the moment. Once the diagnostics die down, press Enter a few times and you will see an [[http://www.osgi.org/Specifications/HomePage OSGi]] console. OSGi is a modular way of developing enterprise-grade applications that allows built-in plugin architecture, module versioning, dependency management, etc. Opendaylight is built as a collection of 200+ OSGi bundle, each of which can be stopped, started, uninstalled, or upgraded without affecting the rest of the controller. 65 76 66 77 … … 189 200 190 201 == Step 6: Code walkthrough == 191