From: Philip Joseph Date: Fri, 30 Sep 2016 14:58:42 +0000 (+0530) Subject: Update template with README and comments X-Git-Tag: v2.0.2~6^2~31 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=92b4260a9d464c5ed770eb8011e6a87d85f360fc;p=osm%2Fdevops.git Update template with README and comments Signed-off-by: Philip Joseph --- diff --git a/src/generate_descriptor_pkg.sh b/src/generate_descriptor_pkg.sh index 8edb06fe..20e1620f 100755 --- a/src/generate_descriptor_pkg.sh +++ b/src/generate_descriptor_pkg.sh @@ -151,6 +151,18 @@ get_pci() { printf '%02x' $((10 + $1)) | tr '[:upper:]' '[:lower:]' } +function write_readme() { + dir=$1 + file=${dir}/README + date=$(date) + + cat >$file <>$desc_file < + # service-primitive: + # - name: config + # parameter: + # - name: + # data-type: [STRING|INTEGER] + # mandatory: [true|false] + # default-value: + # - name: + # parameter: + # - name: + # data-type: [STRING|INTEGER] + # mandatory: [true|false] + # default-value: + # initial-config-primitive: + # - name: config + # parameter: + # - name: + # value: + # - name: + # parameter: + # - name: + # value: +EOF + if [ $VERBOSE == true ]; then echo "INFO: Created $desc_file" fi @@ -475,6 +520,8 @@ function generate_package(){ write_nsd_tmpl $dir $vnfd fi + write_readme $dir + if [ $ARCHIVE == true ]; then # Create archive of the package cd $dest_dir