...
define the flag "migrateMajorVersion" as a property into the new composition definition with default false.
Code Block language yml org.onap.policy.clamp.acm.AutomationCompositionElement: version: 1.0.1 derived_from: tosca.nodetypes.Root properties: provider: type: string required: false migrateMajorVersion: type: boolean required: false default: false metadata: common: true description: Allow to migrate to major version startPhase: type: integer required: false constraints: - greater-or-equal: 0 metadata: common: true description: A value indicating the start phase in which this automation composition element will be started, the first start phase is zero. Automation composition elements are started in their start_phase order and stopped in reverse start phase order. Automation composition elements with the same start phase are started and stopped simultaneously
use the property "migrateMajorVersion".
Code Block language yml onap.policy.clamp.ac.element.Policy_AutomationCompositionElement: version: 1.2.4 type: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement type_version: 1.0.0 description: Automation composition element for the operational policy for Performance Management Subscription Handling properties: provider: Ericsson startPhase: 0 migrateMajorVersion: false
Solution 2: add a
...
property in properties file:
The validation is active by default.
To disable the validation, add migrate.validation.majorversion.enable properties property and set to false in into properties file.
Code Block | ||
---|---|---|
| ||
migrate: validation: majorversion: enable: false |
...