diff options
author | Victor Morales <victor.morales@intel.com> | 2017-08-31 17:28:10 -0500 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2017-08-31 17:28:10 -0500 |
commit | 000de533553068dae03f9e83bd285b9059b63ca3 (patch) | |
tree | 0c319b44e83af263a621cfe3a1cc9f8f567fb7b4 /bootstrap/vagrant-onap/lib/multicloud | |
parent | a3949e28940263815eb2793e7cae602d70a29290 (diff) |
Add MultCloud/MultiVIM support
These changes allows to provide MultiCloud support.
Change-Id: Ic420817df1471077f71290a926fd7e509c052d75
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-Id: MULTICLOUD-53
Diffstat (limited to 'bootstrap/vagrant-onap/lib/multicloud')
-rwxr-xr-x | bootstrap/vagrant-onap/lib/multicloud | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/lib/multicloud b/bootstrap/vagrant-onap/lib/multicloud new file mode 100755 index 000000000..1126d6146 --- /dev/null +++ b/bootstrap/vagrant-onap/lib/multicloud @@ -0,0 +1,42 @@ +#!/bin/bash + +set -o xtrace + +source /var/onap/functions + +multicloud_src_folder=$git_src_folder/multicloud +multicloud_repos=("azure" "framework" "openstack" "openstack/vmware" "openstack/windriver") + +# clone_multicloud_repos() - Function that clones the Multi Cloud repositories +function clone_multicloud_repos { + clone_repo multicloud $multicloud_src_folder + + for dirc in ${multicloud_repos[@]}; do + clone_repo multicloud/$dirc $multicloud_src_folder/$dirc + done +} + +# compile_multicloud_repos() - +function compile_multicloud_repos { + compile_src multicloud $multicloud_src_folder + + for dirc in ${multicloud_repos[@]}; do + compile_src $multicloud_src_folder/$dirc + done +} + +# install_multicloud() - +function install_multicloud { + echo "pass" +} + +# init_multicloud() - Function that initialize Multi Cloud services +function init_multicloud { + if [[ "$clone_repo" == "True" ]]; then + clone_multicloud_repos + if [[ "$compile_repo" == "True" ]]; then + compile_multicloud_repos + fi + fi + install_multicloud +} |