Add getting custom node by capability 53/37353/1
authorshangxdy <shang.xiaodong@zte.com.cn>
Thu, 13 Jul 2017 09:51:42 +0000 (17:51 +0800)
committershangxdy <shang.xiaodong@zte.com.cn>
Thu, 13 Jul 2017 09:51:42 +0000 (17:51 +0800)
commite1ad31691ea4249a7dd33e9280dd6d0df8bc9475
tree30ff99d37dedf93f3474ba3fddfcdf035ee04579
parent5b3f19f30ff02faa80ad02762ae23ad020b04218
Add getting custom node by capability

Currently _get_node_type_by_cap in nodetype definition is only concerned
standard node, not consider custom node, the patch will support to get
node by custom node.

JIRA: PARSER-126

Change-Id: I822acc8bfb747562dc084783d863adf31603e794
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
tosca2heat/tosca-parser/toscaparser/elements/capabilitytype.py
tosca2heat/tosca-parser/toscaparser/elements/nodetype.py
tosca2heat/tosca-parser/toscaparser/nodetemplate.py
tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py