X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=yang2tosca%2Ftosca_transformer.xslt;h=a378f1488161af38257a2f0edad7a030da212c69;hb=0ebd39bd15e93c9b9cfc52f5c89c1a95440ee659;hp=c8953ace48e3e61b895775e178e5aab209933066;hpb=3781ee7d2e1daeea2fa73c021870bb058a098c03;p=parser.git
diff --git a/yang2tosca/tosca_transformer.xslt b/yang2tosca/tosca_transformer.xslt
index c8953ac..a378f14 100644
--- a/yang2tosca/tosca_transformer.xslt
+++ b/yang2tosca/tosca_transformer.xslt
@@ -35,109 +35,157 @@ See the License for the specific language governing permissions and limitations
metadata:
- ID:
- Vendor:
+ ID:
+ Vendor:
dsl_definitions:
- compute_props_host_:compute_props_host_
-
- num_cpu:
-
-
-
- mem_size:
-
-
-
-
-
+ compute_props_host_: compute_props_host_
+
+ num_cpu:
+
+
+
+ mem_size:
+
+
+
+
+
node_types:
- tosca.nodes.compute.:
- derived_from:tosca.nodes.compute
+ tosca.nodes.compute.:
+ derived_from: tosca.nodes.compute
topology_template:
- # a description of the topology template
- description:>
-
- inputs:
- storage_size:
- type:scalar-unit.size
-
- default:
- description:
-
-
- storage_location:
- type:string
- description:>
- Block storage mount point (filesystem path).
- node_templates:
-
- :
- type:tosca.nodes.Compute
- capabilities:
- os:
- properties:
- architecture:
- type:
- distribution:
- version:
- host:
- properties:*compute_props_host_
- scalable:
- properties:
- min_instances:
-
-
- default_instances:
-
-
- requirements:
- - local_storage:
- node:_BlockStorage
- relationship:
- type:AttachesTo
- properties:
- location:{ get_input:storage_location }
- interfaces:
- Standard:
-
-
-
-
- start:
- implementation:
-
-
- delete:
- implementaion:
-
-
- stop:
- implementaion:
-
-
-
-
-
-
-
- _BlockStorage:
- type:tosca.nodes.BlockStorage
- properties:
- size:{ get_input:storage_size }
-
-
-
-
-
-
-
-
-
-
-
+ # A description of the topology template
+ description: >
+
+ inputs:
+ storage_size:
+ type: scalar-unit.size
+
+ default:
+ description:
+
+
+ storage_location:
+ type: string
+ description: >
+ Block storage mount point (filesystem path).
+ node_templates:
+
+ :
+ type: tosca.nodes.Compute
+ capabilities:
+ os:
+ properties:
+ architecture:
+ type:
+ distribution:
+ version:
+ host:
+ properties: *compute_props_host_
+ scalable:
+ properties:
+ min_instances:
+
+
+ default_instances:
+
+
+ requirements:
+ - local_storage:
+ node: _BlockStorage
+ relationship:
+ type: AttachesTo
+ properties:
+ location: { get_input:storage_location }
+ interfaces:
+ Standard:
+
+
+
+
+ start:
+ implementation:
+
+
+ delete:
+ implementaion:
+
+
+ stop:
+ implementaion:
+
+
+
+
+
+
+
+ monitoring_policy:
+ name:
+ parameters:
+
+
+
+
+ :
+
+
+
+
+ actions:
+
+ :
+
+
+
+
+ _BlockStorage:
+ type: tosca.nodes.BlockStorage
+ properties:
+ size: { get_input:storage_size }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -146,20 +194,78 @@ topology_template:
_network:
- type:tosca.nodes.network.Network
- properties:
- ip_version:4
- _port:
- type:tosca.nodes.network.Port
- requirements:
- - binding:
- node:
- - link:
- node:_network
-
-
-
-
+ type:tosca.nodes.network.Network
+ properties:
+ ip_version:4
+ _port:
+ type:tosca.nodes.network.Port
+ requirements:
+ - binding:
+ node:
+ - link:
+ node:_network
+
+
+
+
+
+
+
+
+
+
+
+ :
+ #Endpoint for the VNF
+ type: tosca.nodes.nfv.CP
+ properties:
+ type:
+ requirements:
+
+
+
+
+
+
+
+
+
+
+
+
+ CP:
+ type: tosca.nodes.nfv.CP
+ properties:
+ type:
+ requirements:
+ - virtualLink:
+ node:
+ - virtualBinding:
+ node:
+
+
+
+
+
+
+
+
+
+
+
+
+ VL:
+ type: tosca.nodes.nfv.VL
+ properties:
+ network_name:
+ vendor:
+ capabilities:
+ -virtualLink
+ occurrences:
+
+
+
+