Changes between Version 4 and Version 5 of GEC19Agenda/IntroToOFOpenDaylight/Execute


Ignore:
Timestamp:
03/14/14 02:39:32 (10 years ago)
Author:
Anirudh Ramachandran
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC19Agenda/IntroToOFOpenDaylight/Execute

    v4 v5  
    2525From host1-lan0 (10.10.1.1) icmp_seq=16 Destination Host Unreachable
    2626From host1-lan0 (10.10.1.1) icmp_seq=17 Destination Host Unreachable
    27 
     27^C
    2828}}}
    2929
    3030== Step 2: Log into OVS host and compile and run controller ==
    3131
    32 {{{
     32
     33The 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{{{
     36anirudhr@ovs:~$ sudo cp -r /local/m2 ~/.m2 # move it to our home directory as .m2
     37anirudhr@ovs:~$ sudo chown -R $USER ~/.m2 # change ownership to your current user
     38}}}
     39
     40With that done, let's jump into the code. First, checkout the controller from Github
     41
     42{{{
     43anirudhr@ovs:~$ git clone git://github.com/sdnhub/SDNHub_Opendaylight_Tutorial
    3344anirudhr@ovs:~$ cd SDNHub_Opendaylight_Tutorial/
    34 anirudhr@ovs:~/SDNHub_Opendaylight_Tutorial$ git pull origin master # update the codebase
    3545anirudhr@ovs:~/SDNHub_Opendaylight_Tutorial$ cd commons/parent/
    3646anirudhr@ovs:~/SDNHub_Opendaylight_Tutorial/commons/parent$ mvn clean install -DskipTests -DskipIT
     
    5666This indicates that the build went successfully.
    5767
    58 Open another terminal on the OVS (Note: you can use screen if you wish) and go to the built controller and run it.
     68Open another console on the OVS (Note: you can use GNU Screen if you wish) and go to the built controller and run it.
     69
    5970{{{
    6071anirudhr@ovs$ cd ~/SDNHub_Opendaylight_Tutorial/distribution/opendaylight/target/distribution.tutorial_L2_forwarding-1.0.0-SNAPSHOT-osgipackage/opendaylight
     
    6273}}}
    6374
    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.
     75Now 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.
    6576
    6677
     
    189200
    190201== Step 6: Code walkthrough ==
    191