From 92b4260a9d464c5ed770eb8011e6a87d85f360fc Mon Sep 17 00:00:00 2001 From: Philip Joseph Date: Fri, 30 Sep 2016 20:28:42 +0530 Subject: [PATCH] Update template with README and comments Signed-off-by: Philip Joseph --- src/generate_descriptor_pkg.sh | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) 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 -- 2.25.1