download ng-xos-lib library
Change-Id: Ib6e0b69300a74fbed552b65e5753c3d1ccd0dc30
diff --git a/common/Makedefs b/common/Makedefs
index a8ccfeb..5a4560e 100644
--- a/common/Makedefs
+++ b/common/Makedefs
@@ -9,6 +9,7 @@
XOS_DIR ?= $(HOME_DIR)/xos
SERVICE_DIR ?= $(HOME_DIR)/xos_services
+LIBRARY_DIR ?= $(HOME_DIR)/xos_libraries
XOS_BOOTSTRAP_PORT ?= 81
XOS_UI_PORT ?= 80
@@ -65,3 +66,5 @@
OPENSTACK_BRANCH ?= $(DEFAULT_BRANCH)
OPENSTACK_GIT_URL ?= $(CORD_BASE_GIT_URL)/openstack.git
+NG_XOS_LIB_BRANCH ?= $(DEFAULT_BRANCH)
+NG_XOS_LIB_URL ?= $(CORD_BASE_GIT_URL)/ng-xos-lib.git
diff --git a/common/Makefile b/common/Makefile
index 6a54b74..9677e7e 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -119,6 +119,15 @@
git -C $(SERVICE_DIR)/metro-net pull
git -C $(SERVICE_DIR)/openstack pull
+cord_libraries: $(LIBRARY_DIR) \
+ $(LIBRARY_DIR)/ng-xos-lib
+
+$(LIBRARY_DIR):
+ mkdir -p $(LIBRARY_DIR)
+
+$(LIBRARY_DIR)/ng-xos-lib:
+ git -C $(LIBRARY_DIR) $(GITOPTS) clone -b $(NG_XOS_LIB_BRANCH) $(NG_XOS_LIB_URL)
+
# bootstrap the containers
RUN_TOSCA_BOOTSTRAP ?= python $(COMMON_DIR)/run_tosca.py $(XOS_BOOTSTRAP_PORT) $(ADMIN_USERNAME) $(ADMIN_PASSWORD)