1 # Change ODL version from "Boron-SR1" to "Boron-SR3"
4 Change the Environment variables ODL_KARAF_HOME and ODL_KARAF_DIST.
7 sed -i 's/1-Boron-SR1/3-Boron-SR3/g' ~/.profile
11 ## Download the distribution
12 Download the required disctribution into the Download folder.
16 wget https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.5.3-Boron-SR3/distribution-karaf-0.5.3-Boron-SR3.tar.gz
19 ## Create the DLUX patch
20 For updating DLUX with newer anagular-bootstrap version and small modification in css, the ODL DLUX project must be cloned modified and build.
23 mkdir $HOME/dlux-patch-boron-sr3
24 cd $HOME/dlux-patch-boron-sr3
25 git clone https://git.opendaylight.org/gerrit/dlux
27 git checkout tags/release/boron-sr3
29 # modify anchor color (must not always be dark)
30 sed -i 's/\tcolor: #414042 !important;/\tcolor: #414042;/' dlux-web/src/less/design.less
32 # select new versions for angular-bootstrap and font-awesome
33 sed -i 's/"angular-bootstrap": "~0.13.0",/"angular-bootstrap": "~2.1.3",/' dlux-web/bower.json
34 sed -i 's/"font-awesome": "~4.0.3",/"font-awesome": "~4.7.0",/' dlux-web/bower.json
36 # build dlux - ignore all errors ;) or update ODL DLUX project - it may take 5 to 15min
37 mvn clean install -DskipTests
39 # deploy ($ODL_KARAF_HOME does not exits yet - deploy later)
40 # cp $HOME/dlux-patch-boron-sr3/dlux/loader/impl/target/loader.implementation-0.4.3-Boron-SR3.jar $ODL_KARAF_HOME/system/org/opendaylight/dlux/loader.implementation/0.4.3-Boron-SR3/
41 cp $HOME/dlux-patch/dlux/loader/impl/target/loader.implementation-0.4.3-Boron-SR3.jar $HOME/workspace/ht/SDN-Projects-Boron/code/apps/dlux/
44 ## Prepare OpenDaylight karaf
46 cd $HOME/workspace/ht/SDN-Projects-Boron/code
47 find . -name \pom.xml -exec sed -i "s/1-Boron-SR1/3-Boron-SR3/g" {} \;
48 find . -name \mwtnCommons.services.js -exec sed -i "s/Boron-SR1/Boron-SR3/g" {} \;
51 cp $HOME/dlux-patch-boron-sr3/dlux/loader/impl/target/loader.implementation-0.4.3-Boron-SR3.jar $ODL_KARAF_HOME/system/org/opendaylight/dlux/loader.implementation/0.4.3-Boron-SR3/
60 ## Install karaf features
63 feature:install odl-netconf-topology
64 feature:install odl-restconf-all
65 feature:install odl-mdsal-apidocs
66 feature:install odl-dlux-all
68 # persistent database (ElasticSearch)
69 feature:repo-add mvn:org.apache.karaf.decanter/apache-karaf-decanter/1.1.0/xml/features
70 feature:install elasticsearch
72 # Wireless (mwtn: microwave transport network)
73 feature:repo-add mvn:org.opendaylight.mwtn/mwtn-parent/0.4.0-SNAPSHOT/xml/features
74 feature:install odl-mwtn-all
77 log:set DEBUG org.opendaylight.mwtn
78 log:set TRACE org.opendaylight.netconf