From: Philip Joseph Date: Wed, 14 Sep 2016 18:30:57 +0000 (+0000) Subject: Generate package script: Remove unwanted error message X-Git-Tag: v2.0.2~6^2~42 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=14060ca02ef5d41f41e9a84916a0e06ec31a80bd;p=osm%2Fdevops.git Generate package script: Remove unwanted error message Signed-off-by: Philip Joseph --- diff --git a/src/generate_descriptor_pkg.sh b/src/generate_descriptor_pkg.sh index b4496735..ae0d7e10 100755 --- a/src/generate_descriptor_pkg.sh +++ b/src/generate_descriptor_pkg.sh @@ -284,10 +284,10 @@ EOF - id: ${name}_vld${i} name: ${name}_vld${i} type: ELAN - provider-network: - overlay-type: VLAN - physical-network: - segmentation_id: + # provider-network: + # overlay-type: VLAN + # physical-network: + # segmentation_id: vnfd-connection-point-ref: # Specify the constituent VNFs # member-vnf-index-ref - entry from constituent vnf @@ -295,7 +295,7 @@ EOF # vnfd-connection-point-ref - connection point name in the VNFD - nsd:member-vnf-index-ref: 1 nsd:vnfd-id-ref: ${vnfd} - # Validate the entry below + # NOTE: Validate the entry below nsd:vnfd-connection-point-ref: eth${eth} EOF done @@ -540,20 +540,20 @@ if [[ -z "$PKG" ]]; then exit 1 fi -cd $BASE_DIR -if [ $? -ne 0 ]; then +if [[ ! -d $BASE_DIR ]]; then if [ $CREATE == true ]; then mkdir -p $BASE_DIR if [ $? -ne 0 ]; then echo "ERROR: Unable to create base directory $BASE_DIR" >&2 exit 1 fi - cd $BASE_DIR - else - echo "ERROR: Unable to change to base directory $BASE_DIR!" >&2 - exit 1 fi fi +cd $BASE_DIR +if [ $? -ne 0 ]; then + echo "ERROR: Unable to change to base directory $BASE_DIR!" >&2 + exit 1 +fi # Get full base dir path BASE_DIR=`pwd`