Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SO we need to keep alignment about the how to parse the SDC CSAR, the mapping from CSAR to low-level fields. below is the logic of Policy side used:, the format example refer to OOF R3 HPA & Cloud Agnostic policies 

PolicyTOSCA CSARComment
service"hpaPolicy"
policyNameOSDF_CASABLANCA + . + content.getIdentity()
description"OOF Policy"
templateVersion"OpenSource.version.1"
version1.0
priority5
riskType"Test"
riskLevel2
guardFalse
content.resourcescontent.getResources().add(metaData.getValue("name"));the resource name defined in SDC
content.identitycontent.getPolicyType() + "_" + metaData.getValue("name")
content.policyScope

“HPA”

sdcCsarHelper.getServiceMetadata().getValue("name");

List
content.policyType"hpa"
content.flavorFeatures.idnode.toStringthe name of the VDU node
content.flavorFeatures.type"tosca.nodes.nfv.Vdu.Compute"
content.flavorFeatures.directives.type"flavor_directives"
content.flavorFeatures.directives.attributes.attribute_name"flavor_name"
content.flavorFeatures.directives.attribute_value""placeholder
content.flavorFeatures.flavorPropertiesbased on HPA Policies and Mappings
content.flavorFeatures.flavorProperties.directives

[ ]

OOF fill them in