Constraints validation failed in tosca-parser if the value passed as input parameter in tosca-template
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TOSCA Parser |
New
|
Undecided
|
Unassigned |
Bug Description
While creating VNFD in tacker if any VDU property value in tosca-template is defined as input param and there is some constraints defined on it then tosca-parser failed at [1].
Example:
Tosca-
=
VDU1:
type: tosca.nodes.
properties:
image: cirros-
flavor: { get_input: flavor }
id: { get_input: server_group_id }
Constraints defined as below:
/tacker_
======
node_types:
...
reservation
type: tosca.datatypes
required: false
/tacker_defs.yaml:
==================
datatypes:
...
tosca.
properties:
resource_type:
type: string
required: true
constraints:
- valid_values: [ physical_host, virtual_instance ]
id:
type: string
required: true
[1] https:/