-
-Get Model UUID from VID
- [Documentation] Must use UI since rest call get redirect to portal and get DNS error
- ... Search all services and match on the invariantUUID
- [Arguments] ${invariantUUID}
- Go To ${GLOBAL_VID_SERVER}${VID_ENV}/rest/models/services
- ${resp}= Get Text xpath=//body/pre
- ${json}= To Json ${resp}
- :for ${dict} in @{json}
- \ ${uuid}= Get From DIctionary ${dict} uuid
- \ ${inv}= Get From DIctionary ${dict} invariantUUID
- \ Return From Keyword If "${invariantUUID}" == "${inv}" ${uuid}
- [Return] ""
-
-
-Get Module Names from VID
- [Documentation] Must use UI since rest call get redirect to portal and get DNS error
- ... Given the invariantUUID of the model, mock up the vf_modules list passed to Preload VNF
- [Arguments] ${invariantUUID}
- ${id}= Get Model UUID from VID ${invariantUUID}
- Go To ${GLOBAL_VID_SERVER}${VID_ENV}/rest/models/services/${id}
- ${resp}= Get Text xpath=//body/pre
- ${json}= To Json ${resp}
- ${modules}= Create List
- ${vnfs}= Get From Dictionary ${json} vnfs
- ${keys}= Get Dictionary Keys ${vnfs}
- :for ${key} in @{keys}
- \ Add VFModule ${vnfs['${key}']} ${modules}
- [Return] ${modules}
-
-Add VFModule
- [Documentation] Dig the vf module names from the VID service model
- [Arguments] ${vnf} ${modules}
- ${vfModules}= Get From Dictionary ${vnf} vfModules
- ${keys}= Get Dictionary Keys ${vfModules}
- :for ${key} in @{keys}
- \ ${module}= Get From Dictionary ${vfModules} ${key}
- \ ${dict}= Create Dictionary name=${module['name']}
- \ Append to List ${modules} ${dict}
-
-
-
-
-
-