Guest User

Untitled

a guest
Jun 23rd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. tosca_definitions_version: tosca_simple_yaml_1_0
  2. imports:
  3. - custom_types/oltdevice.yaml
  4. - custom_types/switch.yaml
  5. - custom_types/switchport.yaml
  6. - custom_types/portinterface.yaml
  7.  
  8. description: Configures a full R-CORD POD
  9.  
  10. topology_template:
  11. node_templates:
  12. # Fabric configuration
  13. spine1:
  14. type: tosca.nodes.Switch
  15. properties:
  16. driver: accton-ofdpa3
  17. ipv4Loopback: 192.168.10.21
  18. ipv4NodeSid: 101
  19. isEdgeRouter: False
  20. name: spine1
  21. ofId: of:0000cc37ab7cbe68
  22. routerMac: cc:37:ab:7c:be:68
  23.  
  24. spine2:
  25. type: tosca.nodes.Switch
  26. properties:
  27. driver: accton-ofdpa3
  28. ipv4Loopback: 192.168.10.22
  29. ipv4NodeSid: 102
  30. isEdgeRouter: False
  31. name: spine2
  32. ofId: of:0000cc37ab7cbfee
  33. routerMac: cc:37:ab:7c:bf:ee
  34.  
  35. leaf1:
  36. type: tosca.nodes.Switch
  37. properties:
  38. driver: accton-ofdpa3
  39. ipv4Loopback: 192.168.10.23
  40. ipv4NodeSid: 103
  41. isEdgeRouter: True
  42. name: leaf1
  43. ofId: of:0000cc37ab7cb9d6
  44. routerMac: cc:37:ab:7c:b9:d6
  45.  
  46. leaf2:
  47. type: tosca.nodes.Switch
  48. properties:
  49. driver: accton-ofdpa3
  50. ipv4Loopback: 192.168.10.24
  51. ipv4NodeSid: 104
  52. isEdgeRouter: True
  53. name: leaf2
  54. ofId: of:0000cc37ab7cbada
  55. routerMac: cc:37:ab:7c:ba:da
  56.  
  57. node1port:
  58. type: tosca.nodes.SwitchPort
  59. properties:
  60. portId: 1
  61. host_learning: True
  62. requirements:
  63. - switch:
  64. node: leaf1
  65. relationship: tosca.relationships.BelongsToOne
  66.  
  67. node2port:
  68. type: tosca.nodes.SwitchPort
  69. properties:
  70. portId: 2
  71. host_learning: True
  72. requirements:
  73. - switch:
  74. node: leaf1
  75. relationship: tosca.relationships.BelongsToOne
  76.  
  77. node3port:
  78. type: tosca.nodes.SwitchPort
  79. properties:
  80. portId: 3
  81. host_learning: True
  82. requirements:
  83. - switch:
  84. node: leaf2
  85. relationship: tosca.relationships.BelongsToOne
  86.  
  87. node1iface:
  88. type: tosca.nodes.PortInterface
  89. properties:
  90. ips: 10.42.42.11/24 # The interface IP address (xxx.yyy.www.zzz/nm)
  91. name: node1iface
  92. requirements:
  93. - port:
  94. node: node1port
  95. relationship: tosca.relationships.BelongsToOne
  96.  
  97. node2iface:
  98. type: tosca.nodes.PortInterface
  99. properties:
  100. ips: 10.42.42.12/24 # The interface IP address (xxx.yyy.www.zzz/nm)
  101. name: node2iface
  102. requirements:
  103. - port:
  104. node: node2port
  105. relationship: tosca.relationships.BelongsToOne
  106.  
  107. node3iface:
  108. type: tosca.nodes.PortInterface
  109. properties:
  110. ips: 10.42.43.13/24 # The interface IP address (xxx.yyy.www.zzz/nm)
  111. name: node3iface
  112. requirements:
  113. - port:
  114. node: node3port
  115. relationship: tosca.relationships.BelongsToOne
Add Comment
Please, Sign In to add comment