Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. Tosca Template definition for node 'A' :
  2. ----------------------------------------
  3.  
  4. A:
  5. type: tosca.nodes.Root
  6. properties:
  7. prop1: 12
  8. prop2: tagada
  9. requirements:
  10. - A2B:
  11. relationship: tosca.relationships.ConnectsTo
  12. node: B
  13. - A2C:
  14. relationship: tosca.relationships.ConnectsTo
  15. node: C
  16. - host:
  17. relationship: tosca.relationships.HostedOn
  18. node: srvA
  19. capabilities:
  20. scalable:
  21. properties:
  22. min_instances: 1
  23. max_instances: 5
  24. default_instances: 3
  25. interfaces:
  26. Standard:
  27. inputs:
  28. toto: a
  29. num: 5
  30. create: mon_create.sh
  31. configure:
  32. inputs:
  33. nb_a: 3
  34. toto: b
  35. implementation: mon_configure.sh
  36.  
  37. Internal representation for node A (inside Conul) :
  38. ---------------------------------------------------
  39.  
  40. Key = "Model/un_model/A"
  41. Value =
  42. {
  43. 'name': 'A',
  44. 'type': 'tosca.nodes.Root',
  45. 'nb': 3,
  46. 'scalability_path': '3:3',
  47. 'nb_min': 1,
  48. 'nb_max': 5,
  49. 'properties': {'prop1': 12, 'prop2': 'tagada'},
  50. 'operations': {
  51. 'tosca.interfaces.node.lifecycle.Standard.configure':
  52. {'inputs':
  53. {'nb_a': 3, 'num': 5, 'toto': 'b'},
  54. 'name': 'mon_configure.sh'
  55. },
  56. 'tosca.interfaces.node.lifecycle.Standard.create':
  57. {'inputs':
  58. {'num': 5, 'toto': 'a'},
  59. 'name': 'mon_create.sh'
  60. }
  61. },
  62. 'state': 'none',
  63. 'step': 0,
  64. 'in': {
  65. 'tosca.relationships.DependsOn': [],
  66. 'tosca.relationships.ConnectsTo': [],
  67. 'tosca.relationships.HostedOn': []
  68. },
  69. 'out': {
  70. 'tosca.relationships.DependsOn': [],
  71. 'tosca.relationships.ConnectsTo': ['un_model/B', 'un_model/C'],
  72. 'tosca.relationships.HostedOn': ['un_model/srvA']}
  73. }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement