Hi Tal, Please find the attachment for an example of substitution mapping. The db.yaml is the substituting template which is imported to web.yaml. The web.yaml has an abstract node template "database" which would be substituted with db.yaml.
We want to understand is it mandatory to have templates imported for substitution to work ? Does TOSCA spec says this ? The use-case for us would be to have substitution mapping without importing the template but to find the template from the already available service-templates in the Database. You could refer Section 2.10 in TOSCA simple yaml 1.0 for more information on substitution mapping. Regards, DJ -----Original Message----- From: Tal Liron [mailto:[email protected]] Sent: Thursday, May 25, 2017 10:32 PM To: [email protected] Subject: Re: Query related to substitution mapping Hi DJ, I'm not sure what you mean by "the substituting template". Actually, ARIA does almost nothing with substitution templates right now, just parses, validates, and stores the info. Indeed, if you refer to a node type there, it should be expected that the current template would need to know of that type, possibly by importing. Could you provide a short example to clarify? On Thu, May 25, 2017 at 5:32 AM, D Jayachandran <[email protected] > wrote: > Hi, > > The substitution mapping works in the latest APACHE ARIA code only if > the substituting template is imported in the top-level template. > > This seems to be contradicting with the TOSCA specification where the > substitution is expected to happen without the import (though not > explicitly mentioned). > > We are looking at the possible ways to identify the appropriate node > template without importing the substituting template. ( Possibly by > going through already available service models for a substitutable > entity ) > > Do you have any plans to have substitution mapping work without having > the template imported every time ? > Do you have any feedback on this and if our understanding is correct ? > > > Regards, > DJ > > > > -- Tal Liron Senior Engineer [email protected] | +1 (773) 828-9339 Cloudify | http://getcloudify.org <http://getcloudify.org?utm_source=signaturesatori&utm_medium=email&utm_campaign=general_signature> <https://twitter.com/CloudifySource> <https://www.linkedin.com/groups/8467478> <https://github.com/cloudify-cosmo> <https://github.com/cloudify-cosmo> [image: Azure Webinar] <http://getcloudify.org/webinars/Azure-plugin-for-cloudify-webinar.html?utm_source=signaturesatori&utm_medium=email&utm_campaign=general_signature>
