Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tosca Template definition for node 'A' :
- ----------------------------------------
- A:
- type: tosca.nodes.Root
- properties:
- prop1: 12
- prop2: tagada
- requirements:
- - A2B:
- relationship: tosca.relationships.ConnectsTo
- node: B
- - A2C:
- relationship: tosca.relationships.ConnectsTo
- node: C
- - host:
- relationship: tosca.relationships.HostedOn
- node: srvA
- capabilities:
- scalable:
- properties:
- min_instances: 1
- max_instances: 5
- default_instances: 3
- interfaces:
- Standard:
- inputs:
- toto: a
- num: 5
- create: mon_create.sh
- configure:
- inputs:
- nb_a: 3
- toto: b
- implementation: mon_configure.sh
- Internal representation for node A (inside Conul) :
- ---------------------------------------------------
- Key = "Model/un_model/A"
- Value =
- {
- 'name': 'A',
- 'type': 'tosca.nodes.Root',
- 'nb': 3,
- 'scalability_path': '3:3',
- 'nb_min': 1,
- 'nb_max': 5,
- 'properties': {'prop1': 12, 'prop2': 'tagada'},
- 'operations': {
- 'tosca.interfaces.node.lifecycle.Standard.configure':
- {'inputs':
- {'nb_a': 3, 'num': 5, 'toto': 'b'},
- 'name': 'mon_configure.sh'
- },
- 'tosca.interfaces.node.lifecycle.Standard.create':
- {'inputs':
- {'num': 5, 'toto': 'a'},
- 'name': 'mon_create.sh'
- }
- },
- 'state': 'none',
- 'step': 0,
- 'in': {
- 'tosca.relationships.DependsOn': [],
- 'tosca.relationships.ConnectsTo': [],
- 'tosca.relationships.HostedOn': []
- },
- 'out': {
- 'tosca.relationships.DependsOn': [],
- 'tosca.relationships.ConnectsTo': ['un_model/B', 'un_model/C'],
- 'tosca.relationships.HostedOn': ['un_model/srvA']}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement