...
- The Policy Framework loops over the root PolicyType to the last descendant PolicyType
- A check of the Policy Type specification is made to see if targets have been specified on it, if so, the XACML PDP is invoked with the specified target policy and the specified targets as parameters (Step 2).
- If the target policy for the Policy Type rejects the targets, execution of the policy proper is rejected (Step 3).
- If no targets are specified on the Policy Type or the target policy for the Policy Type accepts the target, execution continues
- The Policy Framework loops over the root Policy to the last descendant Policy
- A check of the Policy specification is made to see if targets have been specified on it, if so, the XACML PDP is invoked with the specified target policy and the specified targets as parameters (Step 4).
- If the target policy for the Policy rejects the targets, execution of the policy proper is rejected (Step 5).
- If no targets are specified on the Policy or the target policy for the Policy accepts the target, execution continues (Step 6)
TOSCA Example for PolicyType targets
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 |
...