Versions Compared

Key

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

...

Code Block
languageyml
titleBase Policy type definition for onap.policies.controlloop.Operational
collapsetrue
tosca_definitions_version: tosca_simple_yaml_1_0_0
policy_types:
  onap.policies.controlloop.Operational:
    derived_from: tosca.policies.Root
    version: 1.0.0
    description: Operational Policy for Control Loops

Coming soon!!!

Base Policy Type with Common Data Type

Code Block
languagejs
titleExample of Common Datatype
linenumberstrue
tosca_definitions_version: tosca_simple_yaml_1_0_0
policy_types:
    -
        onap.policies.controlloop.Root:
            derived_from: tosca.policies.Root
            version: 1.0.0
            description: Root policy type for all Control Loop Policies
            properties:
                common:
                    type: map
                    required: true
                    description: Common Header
                    entry_schema:
                        type: onap.datatypes.controlloop.Common
data_types:
    -
        onap.datatypes.controlloop.Common:
            derived_from: tosca.datatypes.Root
            version: 1.0.0
            description: |
                This common data type captures common data that is
                shared between all the policies for a Control Loop
            properties:
                controlLoopName:
                    type: string
                    required: true
                    description: The unique ID identifying the control loop
                filters:
                    type: map
                    required: false
                    description: A map of service, vnf, pnf filters for the policy
                    entry_schema:
                        type: onap.datatypes.controlloop.Filter
    -
        onap.datatypes.controlloop.Filter:
            derived_from: tosca.datatypes.Root
            version: 1.0.0
            properties:
                # TODO

...