Skip to content
Snippets Groups Projects
Commit d45dbc54 authored by Hammad Zafar's avatar Hammad Zafar Committed by Giacomo Bernini
Browse files

updated importing of variables for VNFD parsing

parent 84ee3ad3
No related branches found
No related tags found
2 merge requests!199Merge "3.3.1 dev" into "release 3" master,!168SOL005 VNF Package Management - Implementation of deltas between v3.3.1 and v2.7.1
This commit is part of merge request !168. Comments created here will be created in the context of that merge request.
......@@ -10,8 +10,8 @@ Library MockServerLibrary
Library String
Library Collections
Library String
Variables descriptors/SOL001/VNFD/vnfd_SOL001.yaml
Variables descriptors/SOL006/VNFD/vnfd_SOL006.yaml
#Variables descriptors/SOL001/VNFD/vnfd_SOL001.yaml
#Variables descriptors/SOL006/VNFD/vnfd_SOL006.yaml
*** Keywords ***
Get all VNF Packages
......@@ -196,6 +196,7 @@ PARSE the Descriptor File
Run Keyword If '${descriptorType}'=='SOL001' Fetch Information from SOL001 descriptor file ELSE Fetch Information from SOL006 descriptor file
Fetch Information from SOL001 descriptor file
Import Variables ${CURDIR}/descriptors/SOL001/VNFD/vnfd_SOL001.yaml
${descriptor_id}= Get Variable Value ${topology_template.node_templates.properties.descriptor_id}
${provider}= Get Variable Value ${topology_template.node_templates.properties.provider}
${product_name}= Get Variable Value ${topology_template.node_templates.properties.product_name}
......@@ -209,6 +210,7 @@ Fetch Information from SOL001 descriptor file
Set Global Variable ${Descriptor_Version} ${descriptor_version}
Fetch Information from SOL006 descriptor file
Import Variables ${CURDIR}/descriptors/SOL006/VNFD/vnfd_SOL006.yaml
${descriptor_id}= Get Variable Value ${nfv.vnfd[0].id}
${provider}= Get Variable Value ${nfv.vnfd[0].provider}
${product_name}= Get Variable Value ${nfv.vnfd[0].product-name}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment