...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
tosca_definitions_version: tosca_simple_yaml_1_1_0 policy_types: onap.policies.controlloop.Operational: derived_from: tosca.policies.Root version: 1.0.0 name: onap.policies.controlloop.Operational description: Operational Policy Root Type. targets: [ActiveZones, TestZones] properties: targetPolicyName: onap.policies.targets.Zones targetPolicyVersion: 1.6.2 onap.policies.controlloop.operational.Common: derived_from: tosca.policies.Root version: 1.0.0 name: onap.policies.controlloop.operational.Common description: | Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant Policy Types. This does NOT support the legacy Policy YAML policy type. onap.policies.controlloop.operational.common.Acme: derived_from: onap.policies.controlloop.operational.Common type_version: 1.0.0 version: 1.0.0 name: onap.policies.controlloop.operational.common.Acme description: Operational policies for Acme PDP targets: [AcmeManagedControlLoops] properties: targetPolicyName: onap.policies.targets.AcmeControlLoops onap.policies.controlloop.operational.common.acme.VehicleManufacturing: derived_from: onap.policies.controlloop.operational.Common type_version: 1.0.0 version: 1.0.0 name: onap.policies.controlloop.operational.common.Acme description: Operational policies for Acme PDP targets: [CarManufacturing, TruckManufacturing] properties: targetPolicyName: onap.policies.targets.controlloop.common.acme.VehicleManufacturingPlants targetPolicyVersion: 2.4.1 |
Blah blah
In the example above, there are four hierarchical levels in the PolicyType definition.
- onap.policies.controlloop.Operational: This policy type has targets of ActiveZones and TestZones, and those targets are governed by the target policy onap.policies.targets.Zones version 1.6.2
onap.policies.controlloop.operational.Common: No targets are specified on this policy type so this specific policy type will apply to all targets that have passed the target governance of its parent policy type.
onap.policies.controlloop.operational.common.Acme: This policy type has a target of AcmeManagedControlLoops and that target is governed by the latest version of the target policy onap.policies.targets.AcmeControlLoops
onap.policies.controlloop.operational.common.acme.VehicleManufacturing: This policy type has targets of CarManufacturing and TruckManufacturing, and those targets are governed by the target policy onap.policies.targets.controlloop.common.acme.VehicleManufacturingPlants version 2.4.1
TOSCA Example for Policy targets
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
tosca_definitions_version: tosca_simple_yaml_1_1_0 topology_template: policies: - operational.vehiclemanufacturing.electric-vehicle: type: onap.policies.controlloop.operational.common.acme.VehicleManufacturing type_version: 1.0.0 version: 1.0.0 name: operational.vehiclemanufacturing.electric-vehicle targets: [Wayne_Line4, Wayne_Line5, Dagenham_Line2, Koln_line5] properties: targetPolicyName: onap.policies.targets.enableEVBatteryTesting targetPolicyVersion: 2.1.2 |
...