From acbe26f06b26873305a6ac8400e7bdc4a792e597 Mon Sep 17 00:00:00 2001 From: Roey Chen Date: Sun, 27 Nov 2016 06:02:16 -0800 Subject: [PATCH] NSX-Devstack: Install vmware-nsxlib from git This patch enables a Devstack user to run vmware-nsx plugin where the dependency vmware-nsxlib is being pulled from git onto DEST (/opt/stack) directory, thus creating a convinient development env to troubleshoot and develop specific changes in vmware-nsxlib. Inorder to pull vmware-nsxlib from git, one may add 'vmware-nsxlib' to the env variable "LIBS_FROM_GIT" in the localrc file. If 'vmware-nsxlib' is not specified in "LIBS_FROM_GIT" then the library will be installed from PyPi. Change-Id: I3a8a3b1100998c57b9014ea12eb52220c8d600a2 --- devstack/plugin.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index ba84425c8d..73a7e8c0c2 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -17,9 +17,17 @@ # under the License. +GITDIR['vmware-nsxlib']=$DEST/vmware-nsxlib +GITREPO['vmware-nsxlib']=${NSXLIB_REPO:-${GIT_BASE}/openstack/vmware-nsxlib.git} +GITBRANCH['vmware-nsxlib']=${NSXLIB_BRANCH:-master} + dir=${GITDIR['vmware-nsx']}/devstack if [[ "$1" == "stack" && "$2" == "install" ]]; then + if use_library_from_git 'vmware-nsxlib'; then + git_clone_by_name 'vmware-nsxlib' + setup_dev_lib 'vmware-nsxlib' + fi setup_develop ${GITDIR['vmware-nsx']} fi