+ if mixin.related.term == 'os_tpl':
+ image_id = mixin.attributes['occi.core.id']
+ if mixin.related.term == 'resource_tpl':
+ flavor_id = mixin.attributes['occi.core.id']
+
+ snf = ComputeClient(Config())
+ vm_name = entity.attributes['occi.compute.hostname']
+ snf.create_server(vm_name, flavor_id, image_id)