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
This commit is contained in:
Roey Chen 2016-11-27 06:02:16 -08:00
parent f38a5af1e1
commit acbe26f06b

View File

@ -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