add mgmt-network cirros_ns 38/5638/1
authorMike Marchetti <mmarchetti@sandvine.com>
Thu, 2 Nov 2017 01:09:47 +0000 (21:09 -0400)
committerMike Marchetti <mmarchetti@sandvine.com>
Thu, 2 Nov 2017 01:09:47 +0000 (21:09 -0400)
- also fixup dependency generations
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
descriptor-packages/mk/pkg.mk
descriptor-packages/nsd/cirros_ns/src/cirros_nsd.yaml

index 6a2b553..9c623c4 100644 (file)
@@ -36,25 +36,27 @@ BUILD_VNFD   := $(shell readlink -f .|sed -e 's/\/.*descriptor-packages//' | gre
 DEP_FILES = $(wildcard src/*)
 
 ifdef BUILD_VNFD
-$(BUILD_DIR)/$(PKG_BASE_NAME): src $(DEP_FILES)
+$(BUILD_DIR)/$(PKG_BASE_NAME): src
        $(Q)mkdir -p $@
        $(Q)cp -rf $</. $@
        $(Q)$(GEN_VNFD_PKG) $< $@
 else
-$(BUILD_DIR)/$(PKG_BASE_NAME): src $(DEP_FILES)
+$(BUILD_DIR)/$(PKG_BASE_NAME): src
        $(Q)mkdir -p $@
        $(Q)cp -rf $</. $@
        $(Q)$(GEN_NSD_PKG) $< $@
 endif
 
 ifdef VNFD_CHARM
-$(BUILD_DIR)/$(PKG_NAME): $(BUILD_DIR)/$(PKG_BASE_NAME) $(CHARM_BUILD_DIR)/$(VNFD_CHARM)
+$(BUILD_DIR)/$(PKG_NAME): $(DEP_FILES) $(CHARM_BUILD_DIR)/$(VNFD_CHARM)
        $(Q)echo "building $(PKG_BASE_NAME) with charm $(VNFD_CHARM)"
+       $(Q)$(MAKE) --no-print-directory $(BUILD_DIR)/$(PKG_BASE_NAME)
        $(Q)cp -rf $(CHARM_BUILD_DIR)/$(VNFD_CHARM) $(BUILD_DIR)/$(PKG_BASE_NAME)/charms
        $(Q)$(GEN_PKG) --no-remove-files -d $(BUILD_DIR) $(BUILD_DIR)/$(PKG_BASE_NAME)
 else
-$(BUILD_DIR)/$(PKG_NAME): $(BUILD_DIR)/$(PKG_BASE_NAME)
-       $(Q)echo "building $(PKG_BASE_NAME)"
+$(BUILD_DIR)/$(PKG_NAME): $(DEP_FILES)
+       $(Q)echo "building $(PKG_BASE_NAME) $(BUILD_DIR)"
+       $(Q)$(MAKE) --no-print-directory $(BUILD_DIR)/$(PKG_BASE_NAME)
        $(Q)$(GEN_PKG) --no-remove-files -d $(BUILD_DIR) $(BUILD_DIR)/$(PKG_BASE_NAME)
 endif
 
index 85587d9..d9d7476 100644 (file)
@@ -34,6 +34,7 @@ nsd:nsd-catalog:
             -   id: cirros_nsd_vld1
                 name: cirros_nsd_vld1
                 type: ELAN
+                mgmt-network: 'true'
                 # vim-network-name: <update>
                 # provider-network:
                 #     overlay-type: VLAN