summaryrefslogtreecommitdiffstats
path: root/sdnr/wireless-transport/code-Carbon-SR1/docs/READMEMigrateBoronSR1-2-SR3.md
diff options
context:
space:
mode:
authordemx8as6 <martin.skorupski@highstreet-technologies.com>2018-07-10 18:07:44 +0200
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-07-11 16:30:28 -0400
commit27fb2d06608fbb070ae2c15a5580a4f5b2423d15 (patch)
treeccd717991b4e556b67f1fd2cacb345b4d174b41f /sdnr/wireless-transport/code-Carbon-SR1/docs/READMEMigrateBoronSR1-2-SR3.md
parent60315525ab5e7c12a9f47c409092e8dba6ad656d (diff)
Add seed code for sdnr app based on ONF Centennial
At this point in time all the Carbon code from ONF Centennial is added to ONAP. Later it needs to be refactored and modified for ODL Oxygen. Change-Id: Iff85dd940c05c3827f1c4e6f9542ecd060c58a46 Issue-ID: SDNC-374 Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wireless-transport/code-Carbon-SR1/docs/READMEMigrateBoronSR1-2-SR3.md')
-rw-r--r--sdnr/wireless-transport/code-Carbon-SR1/docs/READMEMigrateBoronSR1-2-SR3.md86
1 files changed, 86 insertions, 0 deletions
diff --git a/sdnr/wireless-transport/code-Carbon-SR1/docs/READMEMigrateBoronSR1-2-SR3.md b/sdnr/wireless-transport/code-Carbon-SR1/docs/READMEMigrateBoronSR1-2-SR3.md
new file mode 100644
index 00000000..ac207762
--- /dev/null
+++ b/sdnr/wireless-transport/code-Carbon-SR1/docs/READMEMigrateBoronSR1-2-SR3.md
@@ -0,0 +1,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
+```
+
+
+