4.3.5. Policy Types

1.1.1.2       SDC Policy Type Metadata



conformance level 8.0

invariantUUID:



type: string

description: Constant identifier of the resource model.

Ex.: AA97B177-9383-4934-8543-0F91A7A02836

conformance level 8.0

uuid:

type: string

description: Versioned identifier of the resource model (this uuid is changed for every major version of the resource)

Ex.: b8ff69ca-786d-479e-9f9c-217a90ee0ebc

conformance level 8.0

version:

type: string

description: The resource version in SDC catalog. Two digit blocks separated by a dot (“.”).

Ex. : “2.0”

conformance level 8.0

name:

type: string

description: The name of the policy.





1.1.1.3       SDC Policy Type Definitions

Tosca Type

Conformance level

Status

org.openecomp.policies.scaling.Fixed

8.0

Defined

org.openecomp.policies.External

8.0

Defined

org.openecomp.policies.scaling.Variable

future

Defined

1.1.1.3.1     org.openecomp.policies.scaling.Fixed

Policy with this type allows a designer to specify resource quantity for the instances in policy targets.

In case the policy target includes group, recourse quantity addresses group members.

TOSCA definition:

policy_types:   

   org.openecomp.policies.scaling.Fixed:

        derived_from: tosca.policies.Scaling

        properties:

            quantity:

                description: the exact number of instances to keep up

                type: integer

                required: true

1.1.1.3.2     org.openecomp.policies.External

Policy with type External allows a designer to specify resource specific assignments.

TOSCA definition:

policy_types:   

   org.openecomp.policies.External:

      derived_from:  tosca.policies.Root

      description: externally managed policy (for example, type="network assignment", source="Policy Manager", name="route target")

      properties:

        source:

           type: string

           description: The name of the server that exposes the policy with predefined type and name.

            required: false

        type:

            type: string

            description: The type (category) of the policy same as it is defined in the source.

            required: false

        name:

            type: string

            description: The name of the policy, that related to specific type, same as it is defined in the source.

            required: false



1.1.1.3.3     org.openecomp.policies.scaling.Variable



org.openecomp.policies.scaling.Variable:

            derived_from: tosca.policies.Scaling

            description: Maintain the number of instances within the specified range

            properties:

                  init_quantity:

                        description: the number of instances to start with

                        type: integer

                        required: true

                  min_quantity:

                        description: the max. number of instances

                        type: integer

                        required: true

                  max_quantity:

                        description: the min. number of instances

                        type: integer

                        required: true