Versions Compared

Key

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

...

TOSCA template: service-Vloadbalancerms-template.yml

Service Metadata

...

Section

Used for specifying a control loop specific to a service if desired.

Code Block
titleExample From VLoadbalancer YAML
tosca_definitions_version: tosca_simple_yaml_1_1

metadata:
  invariantUUID: ebacca8b-9fb8-498a-8a2b-24757f5236a9
  UUID: e9129f70-1657-4e6d-955c-2651aba4cc28
  name: vLoadBalancerMS
  description: vLBMS

...

TOSCAA&AI MappingNotes

invariantUUID

model-invariant-idMinimum value saved to Operational Policy IF the Control Loop Designer wishes to build a control SPECIFIC to this service.
UUIDmodel-version-idQ: Do we need this? Yes, because there could be different versions of the same model and SO needs to know which version we are using.
name

AAI has the service-instance-name,

not the model instance name

CLAMP - used by GUI to display to Control Loop designers
typeservice-type

CLAMP should find the type="Service"


description
CLAMP - used by GUI to display to Control Loop designers (tooltip)

VNF Node Template Metadata Section(s)

Used in order for an Operational Policy to take an action on a specific VNF. For Scale Out, this depends on the target type specified in the Control Loop event from DCAE.

Code Block
topology_template:
  node_templates:
    vLoadBalancerMS 0:
      type: org.openecomp.resource.vf.Vloadbalancerms
      metadata:
        invariantUUID: 20ad46cc-6b16-4404-9895-93d2baaa8d25
        UUID: 4f715117-08b9-4221-9d63-f3fa86919742
        customizationUUID: 586e41fd-8e13-476e-a055-60e72adc3478
        version: '1.0'
        name: vLoadBalancerMS
        description: vLBMS
        type: VF

Policy Creation

Code Block
titlevDNS - TCA Configuration Policy Payload
linenumberstrue
collapsetrue
TODO - New DCAE TCA Model
Code Block
titlevDNS Create Config API Call
linenumberstrue
collapsetrue
TODO - Policy Lifecycle API 

...

VF Module Metadata

For Scale Out, the action for SO "VF Module Create" requires VF Module information.

Code Block


  groups:

    vloadbalancerms0..Vloadbalancerms..dnsscaling..module-1:

      type: org.openecomp.groups.VfModule

      metadata:

        vfModuleModelName: Vloadbalancerms..dnsscaling..module-1

        vfModuleModelInvariantUUID: 82165a0f-430c-463c-bcef-e106d02af6c9

        vfModuleModelUUID: ddf753e3-c8cc-4247-b902-213fa2083e61

        vfModuleModelVersion: '1'

        vfModuleModelCustomizationUUID: 3878cce1-47c1-4ec8-812a-3e71e908f58e

      properties:

        min_vf_module_instances: 0

        vf_module_label: dnsscaling

        max_vf_module_instances: 50

        vf_module_type: Expansion

        isBase: false

        initial_count: 0

        volume_group: false

    vloadbalancerms0..Vloadbalancerms..base_vlb..module-0:

      type: org.openecomp.groups.VfModule

      metadata:

        vfModuleModelName: Vloadbalancerms..base_vlb..module-0

        vfModuleModelInvariantUUID: b28b4cfa-f793-445e-a8ea-b20299f5961c

        vfModuleModelUUID: 86c2fecc-9840-4341-8357-887049e84e53

        vfModuleModelVersion: '1'

        vfModuleModelCustomizationUUID: 8dc6ef75-7795-4ebd-a3d8-633be62fa698

      properties:

        min_vf_module_instances: 1

        vf_module_label: base_vlb

        max_vf_module_instances: 1

        vf_module_type: Base

        isBase: true

        initial_count: 1

        volume_group: false


CLAMP should parse the "group" section and select only VF Modules that have a property isBase=false in order to do Scale Out.

TOSCAA&AINotes

 vfModuleModelName

-
vfModuleModelInvariantUUIDmodel-invariant-id
vfModuleModelUUIDmodel-version-id
vfModuleModelVersion-Do we need this? It may not be in AAI.
vfModuleModelCustomizationUUIDmodel-customization-id



Policy Creation

Code Block
titlevDNS - TCA Configuration Policy Payload
linenumberstrue
collapsetrue
TODO - New DCAE TCA Model


Code Block
titlevDNS Create Config API Call
linenumberstrue
collapsetrue
TODO - Policy Lifecycle API 


Code Block
titlevDNS - Operational Policy
linenumberstrue
collapsetrue
controlLoop:
  version: 2.0.0
  controlLoopName: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
  trigger_policy: unique-policy-id-1-scale-up
  timeout: 1200
  abatement: false
policies:
  - id: unique-policy-id-1-scale-up
    name: Create a new VF Module
    description:
    actor: SO
    recipe: VF Module Create
    target:
## TODO clean up as VF Modue
      type: VNFVFModule
        vfModuleModelName: Vloadbalancerms..dnsscaling..module-1
        vfModuleModelInvariantUUID: 82165a0f-430c-463c-bcef-e106d02af6c9
        vfModuleModelUUID: ddf753e3-c8cc-4247-b902-213fa2083e61
        vfModuleModelVersion: '1'
        vfModuleModelCustomizationUUID: 3878cce1-47c1-4ec8-812a-3e71e908f58e

    payload:
      requestParameters: '{"usePreload":true,"userParams":[]}'
      configurationParameters: '[{"ip-addr":"$.vf-module-topology.vf-module-parameters.param[9]","oam-ip-addr":"$.vf-module-topology.vf-module-parameters.param[16]","enabled":"$.vf-module-topology.vf-module-parameters.param[23]"}]'
    retry: 0
    timeout: 1200
    success: final_success
    failure: final_failure
    failure_timeout: final_failure_timeout
    failure_retries: final_failure_retries
    failure_exception: final_failure_exception
    failure_guard: final_failure_guard

...