aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wireless-transport/code-Carbon-SR1/docs/READMEMigrateBoronSR1-2-SR3.md
blob: ac20776292fce8a93b00cae0ac96cf7079e44e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Change ODL version from "Boron-SR1" to "Boron-SR3"

## Update ~/.profile
Change the Environment variables ODL_KARAF_HOME and ODL_KARAF_DIST.

```
sed -i 's/1-Boron-SR1/3-Boron-SR3/g' ~/.profile
source ~/.profile
```

## Download the distribution
Download the required disctribution into the Download folder.

```
cd $HOME/Downloads/
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
```

## Create the DLUX patch
For updating DLUX with newer anagular-bootstrap version and small modification in css, the ODL DLUX project must be cloned modified and build.

```
mkdir $HOME/dlux-patch-boron-sr3
cd $HOME/dlux-patch-boron-sr3
git clone https://git.opendaylight.org/gerrit/dlux
cd dlux
git checkout tags/release/boron-sr3

# modify anchor color (must not always be dark)
sed -i 's/\tcolor: #414042 !important;/\tcolor: #414042;/' dlux-web/src/less/design.less

# select new versions for angular-bootstrap and font-awesome
sed -i 's/"angular-bootstrap": "~0.13.0",/"angular-bootstrap": "~2.1.3",/' dlux-web/bower.json
sed -i 's/"font-awesome": "~4.0.3",/"font-awesome": "~4.7.0",/' dlux-web/bower.json

# build dlux - ignore all errors ;) or update ODL DLUX project - it may take 5 to 15min
mvn clean install -DskipTests

# deploy ($ODL_KARAF_HOME does not exits yet - deploy later)
# 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/
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/
```

## Prepare OpenDaylight karaf
```
cd $HOME/workspace/ht/SDN-Projects-Boron/code
find . -name \pom.xml -exec sed -i "s/1-Boron-SR1/3-Boron-SR3/g" {} \;
find . -name \mwtnCommons.services.js -exec sed -i "s/Boron-SR1/Boron-SR3/g" {} \;
./install.sh prepare
./install.sh a
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/
```

## Start the engines!
```
cd $ODL_KARAF_HOME
./bin/karaf clean
```

## Install karaf features
```
# pure OpenDaylight
feature:install odl-netconf-topology
feature:install odl-restconf-all 
feature:install odl-mdsal-apidocs 
feature:install odl-dlux-all 

# persistent database (ElasticSearch)
feature:repo-add mvn:org.apache.karaf.decanter/apache-karaf-decanter/1.1.0/xml/features
feature:install elasticsearch

# Wireless (mwtn: microwave transport network)
feature:repo-add mvn:org.opendaylight.mwtn/mwtn-parent/0.4.0-SNAPSHOT/xml/features
feature:install odl-mwtn-all

# Logging settings
log:set DEBUG org.opendaylight.mwtn
log:set TRACE org.opendaylight.netconf

# check
info
log:list
```