policies-default-condition
Description
Remove policy "policy_one" since is has no present targets.
Variable Service Template
The variability of the following variable service template shall be resolved.
| tosca_definitions_version: tosca_variability_1_0
topology_template:
variability:
options:
policy_default_condition: true
type_default_condition: true
node_templates:
node_one:
type: node_one
conditions: false
node_two:
type: node_two
policies:
- policy_one:
type: policy_one
targets:
- node_one
- policy_two:
type: policy_two
targets:
- node_one
- node_two
|
Variability-Resolved Service Template
The following variability-resolved service template is expected.
| tosca_definitions_version: tosca_simple_yaml_1_3
topology_template:
node_templates:
node_two:
type: node_two
policies:
- policy_two:
type: policy_two
targets:
- node_two
|
Last update:
November 18, 2024