Heat templates for deploying OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

211 lines
10KB

  1. # List of networks, used for j2 templating of enabled networks
  2. #
  3. # This file demonstrates routed spine/leaf networks. Supernets
  4. # are used to segregate traffic and provide symmetric routing.
  5. # Each type of network has a supernet, and the supernet route
  6. # on each network points to the local network gateway. This
  7. # ensures that traffic uses the appropriate network and not
  8. # the default gateway for destinations matching the supernet.
  9. #
  10. # Supported values:
  11. #
  12. # name: Name of the network (mandatory)
  13. # name_lower: lowercase version of name used for filenames
  14. # (optional, defaults to name.lower())
  15. # service_net_map_replace: if name_lower is set to a custom name this should be set
  16. # to original default (optional). This field is only necessary when
  17. # changing the default network names, not when adding a new custom network.
  18. # enabled: Is the network enabled (optional, defaults to true)
  19. # NOTE: False will use noop.yaml for unused legacy networks to support upgrades.
  20. # vlan: vlan for the network (optional)
  21. # vip: Enable creation of a virtual IP on this network
  22. # ip_subnet: IP/CIDR, e.g. '192.168.24.0/24' or '2001:db8:fd00:1000::/64'
  23. # (optional, may use parameter defaults instead)
  24. # allocation_pools: IP range list e.g. [{'start':'10.0.0.4', 'end':'10.0.0.250'}]
  25. # gateway_ip: gateway for the network (optional, may use parameter defaults)
  26. # routes: Optional, list of networks that should be routed via network gateway.
  27. # Example: [{'destination':'10.0.0.0/16', 'nexthop':'10.0.0.1'}]
  28. # A single /16 supernet route could be used for 255 smaller /24 subnets.
  29. # ipv6_subnet: Optional, sets default IPv6 subnet if IPv4 is already defined.
  30. # ipv6_allocation_pools: Set default IPv6 allocation pools if IPv4 allocation pools
  31. # are already defined.
  32. # gateway_ipv6: Set an IPv6 gateway if IPv4 gateway already defined.
  33. # routes_ipv6: Optional, list of networks that should be routed via network gateway.
  34. # Example: [{'destination':'fd00:fd00:fd00:3004::/64',
  35. # 'nexthop':'fd00:fd00:fd00:3000::1'}]
  36. # A single /16 supernet route could be used for 255 smaller /24 subnets.
  37. # ipv6: If ip_subnet not defined, this specifies that the network is IPv6-only.
  38. # NOTE: IP-related values set parameter defaults in templates, may be overridden,
  39. # either by operators, or e.g in environments/network-isolation-v6.yaml where we
  40. # set some default IPv6 addresses.
  41. # compat_name: for existing stack you may need to override the default
  42. # transformation for the resource's name.
  43. # mtu: Set the maximum transmission unit (MTU) that is guaranteed to pass
  44. # through the data path of the segments in the network.
  45. # (optional, defaults to 1500)
  46. # subnets: A map of additional subnets for the network (optional). The map
  47. # takes the following format:
  48. # {'<subnet name>': {'enabled': '<true|false>',
  49. # 'vlan': '<vlan-id>',
  50. # 'ip_subnet': '<IP/CIDR>',
  51. # 'allocation_pools': '<IP range list>',
  52. # 'gateway_ip': '<gateway IP>',
  53. # 'routes': '<Routes list>',
  54. # 'ipv6_subnet': '<IPv6/CIDR>',
  55. # 'ipv6_allocation_pools': '<IPv6 range list>',
  56. # 'gateway_ipv6': '<IPv6 gateway>',
  57. # 'routes_ipv6': '<Routes list>'}}
  58. #
  59. # Example: # A single 10.0.0.0/16 route works for up to 255 /24 networks
  60. # - name Example1
  61. # vip: false
  62. # ip_subnet: '10.0.1.0/24'
  63. # allocation_pools: [{'start': '10.0.1.4', 'end': '10.0.1.250'}]
  64. # gateway_ip: '10.0.1.254'
  65. # routes: [{'destination':'10.0.0.0/16', 'nexthop':'10.0.1.254'}]
  66. # - name Example2
  67. # vip: false
  68. # ip_subnet: '10.0.2.0/24'
  69. # allocation_pools: [{'start': '10.0.2.4', 'end': '10.0.2.250'}]
  70. # gateway_ip: '10.0.2.254'
  71. # routes: [{'destination':'10.0.0.0/16', 'nexthop':'10.0.2.254'}]
  72. #
  73. # To support backward compatility, two versions of the network definitions will
  74. # be created, network/<network>.yaml and network/<network>_v6.yaml. Only
  75. # one of these files may be used in the deployment at a time, since the
  76. # parameters used for configuration are the same in both files. In the
  77. # future, this behavior may be changed to create only one file for custom
  78. # networks. You may specify IPv6 addresses for ip_subnet, allocation_pools,
  79. # and gateway_ip if no IPv4 addresses are used for a custom network, or set
  80. # ipv6: true, and the network/<network>.yaml file will be configured as IPv6.
  81. #
  82. # For configuring both IPv4 and IPv6 on the same interface, use two separate
  83. # networks, and then assign both IPs to the same interface in a custom NIC
  84. # configuration templates.
  85. #
  86. # The ordering of the networks below will determine the order in which NICs
  87. # are assigned in the network/config/multiple-nics templates, beginning with
  88. # NIC2, Control Plane is always NIC1.
  89. - name: Storage
  90. vip: true
  91. vlan: 30
  92. name_lower: storage
  93. ip_subnet: '172.16.16.0/24'
  94. gateway_ip: '172.16.16.1'
  95. routes: [{'destination':'172.16.16.0/20', 'nexthop':'172.16.16.1'}]
  96. allocation_pools: [{'start': '172.16.16.4', 'end': '172.16.16.250'}]
  97. ipv6_subnet: 'fd00:fd00:fd00:3000::/64'
  98. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:3000::10', 'end': 'fd00:fd00:fd00:3000:ffff:ffff:ffff:fffe'}]
  99. routes_ipv6: [{'destination':'fd00:fd00:fd00:3004::/64', 'nexthop':'fd00:fd00:fd00:3000::1'}]
  100. mtu: 1500
  101. - name: StorageLeaf2
  102. vip: false
  103. vlan: 31
  104. name_lower: storage2
  105. ip_subnet: '172.16.17.0/24'
  106. gateway_ip: '172.16.17.1'
  107. routes: [{'destination':'172.16.16.0/20', 'nexthop':'172.16.17.1'}]
  108. allocation_pools: [{'start': '172.16.17.4', 'end': '172.16.17.250'}]
  109. ipv6_subnet: 'fd00:fd00:fd00:3004::/64'
  110. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:3004::10', 'end': 'fd00:fd00:fd00:3004:ffff:ffff:ffff:fffe'}]
  111. routes_ipv6: [{'destination':'fd00:fd00:fd00:3000::/64', 'nexthop':'fd00:fd00:fd00:3004::1'}]
  112. mtu: 1500
  113. - name: StorageMgmt
  114. name_lower: storage_mgmt
  115. vip: true
  116. vlan: 40
  117. ip_subnet: '172.16.48.0/24'
  118. gateway_ip: '172.16.48.1'
  119. routes: [{'destination':'172.16.48.0/20', 'nexthop':'172.16.48.1'}]
  120. allocation_pools: [{'start': '172.16.48.4', 'end': '172.16.48.250'}]
  121. ipv6_subnet: 'fd00:fd00:fd00:4000::/64'
  122. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:4000::10', 'end': 'fd00:fd00:fd00:4000:ffff:ffff:ffff:fffe'}]
  123. routes_ipv6: [{'destination':'fd00:fd00:fd00:4004::/64', 'nexthop':'fd00:fd00:fd00:4000::1'}]
  124. mtu: 1500
  125. - name: StorageMgmtLeaf2
  126. name_lower: storage_mgmt2
  127. vip: false
  128. vlan: 41
  129. ip_subnet: '172.16.49.0/24'
  130. gateway_ip: '172.16.49.1'
  131. routes: [{'destination':'172.16.48.0/20', 'nexthop':'172.16.49.1'}]
  132. allocation_pools: [{'start': '172.16.49.4', 'end': '172.16.49.250'}]
  133. ipv6_subnet: 'fd00:fd00:fd00:4004::/64'
  134. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:4004::10', 'end': 'fd00:fd00:fd00:4004:ffff:ffff:ffff:fffe'}]
  135. routes_ipv6: [{'destination':'fd00:fd00:fd00:4000::/64', 'nexthop':'fd00:fd00:fd00:4004::1'}]
  136. mtu: 1500
  137. - name: InternalApi
  138. name_lower: internal_api
  139. vip: true
  140. vlan: 20
  141. ip_subnet: '172.16.32.0/24'
  142. gateway_ip: '172.16.32.1'
  143. routes: [{'destination':'172.16.32.0/20', 'nexthop':'172.16.32.1'}]
  144. allocation_pools: [{'start': '172.16.32.4', 'end': '172.16.32.250'}]
  145. ipv6_subnet: 'fd00:fd00:fd00:2000::/64'
  146. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:2000::10', 'end': 'fd00:fd00:fd00:2000:ffff:ffff:ffff:fffe'}]
  147. routes_ipv6: [{'destination':'fd00:fd00:fd00:2004::/64', 'nexthop':'fd00:fd00:fd00:2000::1'}]
  148. mtu: 1500
  149. - name: InternalApiLeaf2
  150. name_lower: internal_api2
  151. vip: false
  152. vlan: 21
  153. ip_subnet: '172.16.33.0/24'
  154. gateway_ip: '172.16.33.1'
  155. routes: [{'destination':'172.16.32.0/20', 'nexthop':'172.16.33.1'}]
  156. allocation_pools: [{'start': '172.16.33.4', 'end': '172.16.33.250'}]
  157. ipv6_subnet: 'fd00:fd00:fd00:2004::/64'
  158. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:2004::10', 'end': 'fd00:fd00:fd00:2004:ffff:ffff:ffff:fffe'}]
  159. routes_ipv6: [{'destination':'fd00:fd00:fd00:2000::/64', 'nexthop':'fd00:fd00:fd00:2004::1'}]
  160. mtu: 1500
  161. - name: Tenant
  162. vip: false # Tenant networks do not use VIPs
  163. name_lower: tenant
  164. vlan: 50
  165. ip_subnet: '172.16.0.0/24'
  166. gateway_ip: '172.16.0.1'
  167. routes: [{'destination':'172.16.0.0/20', 'nexthop':'172.16.0.1'}]
  168. allocation_pools: [{'start': '172.16.0.4', 'end': '172.16.0.250'}]
  169. ipv6_subnet: 'fd00:fd00:fd00:5000::/64'
  170. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:5000::10', 'end': 'fd00:fd00:fd00:5000:ffff:ffff:ffff:fffe'}]
  171. routes_ipv6: [{'destination':'fd00:fd00:fd00:5004::/64', 'nexthop':'fd00:fd00:fd00:5000::1'}]
  172. mtu: 1500
  173. - name: TenantLeaf2
  174. vip: false # Tenant networks do not use VIPs
  175. name_lower: tenant2
  176. vlan: 51
  177. ip_subnet: '172.16.1.0/24'
  178. gateway_ip: '172.16.1.1'
  179. routes: [{'destination':'172.16.0.0/20', 'nexthop':'172.16.1.1'}]
  180. allocation_pools: [{'start': '172.16.1.4', 'end': '172.16.1.250'}]
  181. ipv6_subnet: 'fd00:fd00:fd00:5004::/64'
  182. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:5004::10', 'end': 'fd00:fd00:fd00:5004:ffff:ffff:ffff:fffe'}]
  183. routes_ipv6: [{'destination':'fd00:fd00:fd00:5000::/64', 'nexthop':'fd00:fd00:fd00:5004::1'}]
  184. mtu: 1500
  185. - name: External
  186. vip: true
  187. name_lower: external
  188. vlan: 10
  189. ip_subnet: '10.0.0.0/24'
  190. allocation_pools: [{'start': '10.0.0.4', 'end': '10.0.0.250'}]
  191. gateway_ip: '10.0.0.1'
  192. ipv6_subnet: '2001:db8:fd00:1000::/64'
  193. ipv6_allocation_pools: [{'start': '2001:db8:fd00:1000::10', 'end': '2001:db8:fd00:1000:ffff:ffff:ffff:fffe'}]
  194. gateway_ipv6: '2001:db8:fd00:1000::1'
  195. mtu: 1500
  196. - name: Management
  197. # Management network is enabled by default for backwards-compatibility, but
  198. # is not included in any roles by default. Add to role definitions to use.
  199. enabled: true
  200. vip: false # Management network does not use VIPs
  201. name_lower: management
  202. vlan: 60
  203. ip_subnet: '10.0.1.0/24'
  204. allocation_pools: [{'start': '10.0.1.4', 'end': '10.0.1.250'}]
  205. gateway_ip: '10.0.1.1'
  206. ipv6_subnet: 'fd00:fd00:fd00:6000::/64'
  207. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:6000::10', 'end': 'fd00:fd00:fd00:6000:ffff:ffff:ffff:fffe'}]
  208. gateway_ipv6: 'fd00:fd00:fd00:6000::1'
  209. mtu: 1500