[CORD-2068] [CORD-2069] [CORD-2070] [CORD-2071] [CORD-2072] [CORD-2073]
Exposing parsing and saving errors
Change-Id: I98ded64a9d5b09a2e69e8f47242be4f775075b00
diff --git a/src/tosca/xtarget/tosca.xtarget b/src/tosca/xtarget/tosca.xtarget
index 5faafee..f0eb78b 100644
--- a/src/tosca/xtarget/tosca.xtarget
+++ b/src/tosca/xtarget/tosca.xtarget
@@ -5,6 +5,20 @@
node_types:
+ # Example usage:
+ #
+ # <node-name>:
+ # type: tosca.nodes.{{ m.name }}
+ # properties:
+ # must-exist: true # optional to reference models created in other recipes
+{%- for f in (m.fields + xproto_base_fields(m, proto.message_table)) | sort(attribute='name') %}
+{%- if not f.link and xproto_tosca_required(f.options.null, f.options.blank, f.options.default) %}
+ # {{ f.name }}: <value>
+{%- endif -%}
+{%- endfor %}
+
+
+
tosca.nodes.{{ m.name }}:
derived_from: tosca.nodes.Root
description: {% if m.options.description -%}{{ m.options.description}}{% else%}"An XOS {{ m.name }}"{%- endif %}
@@ -27,6 +41,16 @@
{% for l in m.links %}
{%- if l.link_type == "manytoone" -%}
+
+
+ # Identify a {{ l.peer.name }} that belongs to a {{ m.name }}
+ #
+ # example usage:
+ # requirements:
+ # - {{ l.src_port }}:
+ # node: <node-name>:
+ # relationship: tosca.relationships.BelongsToOne
+
tosca.relationships.BelongsToOne:
derived_from: tosca.relationships.Root
valid_target_types: [ tosca.capabilities.xos.{{ l.peer.name }} ]