aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/odl_sfc/roles/setup-odl-sfc/templates/odl_pkg.sh.j2
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2018-02-06 11:46:09 +0800
committerYifei Xue <xueyifei@huawei.com>2018-02-13 04:42:15 +0000
commitcd30202e48ceedb3119d9d17b721840c54d0eb42 (patch)
treeba156f77f0869c50b28c3d5be78f8262bc00eda8 /plugins/odl_sfc/roles/setup-odl-sfc/templates/odl_pkg.sh.j2
parent5dd3af7fd00971a96d91397f9754e6455abb660d (diff)
Update the odl_sfc plugin to use the latest version
JIRA: - We have upgraded odl version to nitrogen SR1. So this patch we are going to update the odl_sfc plugin to satisfy the latest odl version. Change-Id: I7342fad58c0ae21f918e27e9d72deae214c2af4e Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'plugins/odl_sfc/roles/setup-odl-sfc/templates/odl_pkg.sh.j2')
-rwxr-xr-xplugins/odl_sfc/roles/setup-odl-sfc/templates/odl_pkg.sh.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/odl_sfc/roles/setup-odl-sfc/templates/odl_pkg.sh.j2 b/plugins/odl_sfc/roles/setup-odl-sfc/templates/odl_pkg.sh.j2
new file mode 100755
index 00000000..f8882b23
--- /dev/null
+++ b/plugins/odl_sfc/roles/setup-odl-sfc/templates/odl_pkg.sh.j2
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+rm -rf /home/networking
+rm -rf /home/tmp
+
+mkdir -p /home/networking
+mkdir -p /home/tmp
+
+cd /home/networking
+
+git clone https://github.com/openstack/networking-odl.git -b stable/{{ os_name }}
+git clone https://github.com/openstack/networking-sfc.git -b stable/{{ os_name }}
+
+pip wheel /home/networking/networking-odl/ -w /home/tmp/
+pip wheel /home/networking/networking-sfc/ -w /home/tmp/
+
+cp /home/tmp/networking* /var/www/repo/os-releases/{{ os_ver }}/ubuntu-16.04-x86_64/
+
+sleep 30