Merge "[PDF] check-jinja: Filter-out incompatible PDF/IA"
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 22 Jan 2018 16:50:10 +0000 (16:50 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 22 Jan 2018 16:50:10 +0000 (16:50 +0000)
1  2 
config/utils/check-jinja2.sh

@@@ -32,9 -25,11 +32,12 @@@ for adapter in 'PDF Verify Matrix' ${IN
  done
  
  # Iterate all PDFs, check with each installer adapter, log results
 +# shellcheck disable=SC2086
  while IFS= read -r lab_config; do
      SUMMARY+="\n${lab_config#labs/};"
+     lab_nodes=$(grep -ce 'node:' "${lab_config}")
+     lab_tmacs=$(grep -ce 'mac_address:' "${lab_config}")
+     ((lab_amacs=lab_tmacs/lab_nodes)); ((lab_nodes-=1))
      echo "###################### ${lab_config} ######################"
      for adapter in ${INSTALLER_ADAPTERS}; do
          pdf_inst=0