Affinity and anti-affinity translate to heat resource type 35/16335/3
authorshangxdy <shang.xiaodong@zte.com.cn>
Mon, 4 Jul 2016 16:14:21 +0000 (00:14 +0800)
committershangxdy <shang.xiaodong@zte.com.cn>
Mon, 4 Jul 2016 16:28:58 +0000 (00:28 +0800)
commit35292c4c212962cff59c2c35420435d77804375b
tree8e8415789169ff8970d0b25e05640fa2dafa4f52
parentabb85f971f797e7db6c1737862b53ab4fee2a12e
Affinity and anti-affinity translate to heat resource type

Translate simple tosca policy types of tosca.policy.Placement.Colocate
and tosca.policy.Placement.Antilocate into heat resource
type(nova::servergroup and nova::server)

Change-Id: Icbe8c51c158886608a196951df19e9a503cb786a
JIRA: PARSER-39
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
tosca2heat/heat-translator/translator/hot/syntax/hot_resource.py
tosca2heat/heat-translator/translator/hot/tosca/tosca_policies_antilocate.py [new file with mode: 0644]
tosca2heat/heat-translator/translator/hot/tosca/tosca_policies_colocate.py [new file with mode: 0644]