Node template does not inherit node type interfaces directly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TOSCA Parser |
New
|
Undecided
|
Denis Makogon |
Bug Description
Node templates are not inheriting node type interfaces, but include include node type definition
Example:
###### Node type
tosca.
derived_from: tosca.openstack
properties:
username:
type: string
required: true
password:
type: string
required: true
tenant_name:
type: string
required: true
auth_url:
type: string
required: true
region:
type: string
required: true
attributes:
auth_token:
type: string
interfaces:
Standard:
type: tosca.interface
create:
inputs:
args:
type: list
kwargs:
type: map
######## Node template
authorizati
type: tosca.openstack
properties:
username: { get_input: keystone_username }
password: { get_input: keystone_password }
auth_url: { get_input: keystone_url }
region: { get_input: openstack_region }
So, when parser will return number of nodes through TOSCA graph node template interfaces will have an empty list, but its node type has explicitly defined interfaces. Inheritance is broken.
Changed in tosca-parser: | |
assignee: | nobody → Denis Makogon (lildee1991) |
Even more.
If i would define a generic type and then will create a new type by deriving for generic type, new type will have its own set interfaces, so, inheritance is also broken between types, but not only between type and its template.