ac20776292fce8a93b00cae0ac96cf7079e44e8c
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / docs / READMEMigrateBoronSR1-2-SR3.md
1 # Change ODL version from "Boron-SR1" to "Boron-SR3"
2
3 ## Update ~/.profile
4 Change the Environment variables ODL_KARAF_HOME and ODL_KARAF_DIST.
5
6 ```
7 sed -i 's/1-Boron-SR1/3-Boron-SR3/g' ~/.profile
8 source ~/.profile
9 ```
10
11 ## Download the distribution
12 Download the required disctribution into the Download folder.
13
14 ```
15 cd $HOME/Downloads/
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
17 ```
18
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.
21
22 ```
23 mkdir $HOME/dlux-patch-boron-sr3
24 cd $HOME/dlux-patch-boron-sr3
25 git clone https://git.opendaylight.org/gerrit/dlux
26 cd dlux
27 git checkout tags/release/boron-sr3
28
29 # modify anchor color (must not always be dark)
30 sed -i 's/\tcolor: #414042 !important;/\tcolor: #414042;/' dlux-web/src/less/design.less
31
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
35
36 # build dlux - ignore all errors ;) or update ODL DLUX project - it may take 5 to 15min
37 mvn clean install -DskipTests
38
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/
42 ```
43
44 ## Prepare OpenDaylight karaf
45 ```
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" {} \;
49 ./install.sh prepare
50 ./install.sh a
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/
52 ```
53
54 ## Start the engines!
55 ```
56 cd $ODL_KARAF_HOME
57 ./bin/karaf clean
58 ```
59
60 ## Install karaf features
61 ```
62 # pure OpenDaylight
63 feature:install odl-netconf-topology
64 feature:install odl-restconf-all 
65 feature:install odl-mdsal-apidocs 
66 feature:install odl-dlux-all 
67
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
71
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
75
76 # Logging settings
77 log:set DEBUG org.opendaylight.mwtn
78 log:set TRACE org.opendaylight.netconf
79
80 # check
81 info
82 log:list
83 ```
84
85
86