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.

network_data_subnets_routed.yaml 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. # List of networks, used for j2 templating of routed networks
  2. #
  3. # Supported values:
  4. #
  5. # name: Name of the network (mandatory)
  6. # name_lower: lowercase version of name used for filenames
  7. # (optional, defaults to name.lower())
  8. # service_net_map_replace: if name_lower is set to a custom name this should be set
  9. # to original default (optional). This field is only necessary when
  10. # changing the default network names, not when adding a new custom network.
  11. # enabled: Is the network enabled (optional, defaults to true)
  12. # NOTE: False will use noop.yaml for unused legacy networks to support upgrades.
  13. # vlan: vlan for the network (optional)
  14. # vip: Enable creation of a virtual IP on this network
  15. # ip_subnet: IP/CIDR, e.g. '192.168.24.0/24' or '2001:db8:fd00:1000::/64'
  16. # (optional, may use parameter defaults instead)
  17. # allocation_pools: IP range list e.g. [{'start':'10.0.0.4', 'end':'10.0.0.250'}]
  18. # gateway_ip: gateway for the network (optional, may use parameter defaults)
  19. # routes: Optional, list of networks that should be routed via network gateway.
  20. # Example: [{'destination':'10.0.0.0/16', 'nexthop':'10.0.0.1'}]
  21. # A single /16 supernet route could be used for 255 smaller /24 subnets.
  22. # ipv6_subnet: Optional, sets default IPv6 subnet if IPv4 is already defined.
  23. # ipv6_allocation_pools: Set default IPv6 allocation pools if IPv4 allocation pools
  24. # are already defined.
  25. # ipv6_gateway: Set an IPv6 gateway if IPv4 gateway already defined.
  26. # routes_ipv6: Optional, list of networks that should be routed via network gateway.
  27. # Example: [{'destination':'fd00:fd00:fd00:3004::/64',
  28. # 'nexthop':'fd00:fd00:fd00:3000::1'}]
  29. # ipv6: If ip_subnet not defined, this specifies that the network is IPv6-only.
  30. # NOTE: IP-related values set parameter defaults in templates, may be overridden,
  31. # either by operators, or e.g in environments/network-isolation-v6.yaml where we
  32. # set some default IPv6 addresses.
  33. # compat_name: for existing stack you may need to override the default
  34. # transformation for the resource's name.
  35. # subnets: A map of additional subnets for the network (optional). The map
  36. # takes the following format:
  37. # {'<subnet name>': {'enabled': '<true|false>',
  38. # 'vlan': '<vlan-id>',
  39. # 'ip_subnet': '<IP/CIDR>',
  40. # 'allocation_pools': '<IP range list>',
  41. # 'gateway_ip': '<gateway IP>',
  42. # 'routes': '<Routes list>',
  43. # 'ipv6_subnet': '<IPv6/CIDR>',
  44. # 'ipv6_allocation_pools': '<IPv6 range list>',
  45. # 'gateway_ipv6': '<IPv6 gateway>',
  46. # 'routes_ipv6': '<Routes list>'}}
  47. #
  48. # Example:
  49. # - name Example
  50. # vip: false
  51. # ip_subnet: '10.0.2.0/24'
  52. # allocation_pools: [{'start': '10.0.2.4', 'end': '10.0.2.250'}]
  53. # gateway_ip: '10.0.2.254'
  54. # subnets:
  55. # example_siteB_rack1:
  56. # vlan: 11
  57. # ip_subnet: '172.16.1.64/26'
  58. # allocation_pools: [{'start': '172.16.1.70', 'end': '172.16.1.110'}]
  59. # gateway_ip: '172.16.1.65'
  60. #
  61. # To support backward compatility, two versions of the network definitions will
  62. # be created, network/<network>.yaml and network/<network>_v6.yaml. Only
  63. # one of these files may be used in the deployment at a time, since the
  64. # parameters used for configuration are the same in both files. In the
  65. # future, this behavior may be changed to create only one file for custom
  66. # networks. You may specify IPv6 addresses for ip_subnet, allocation_pools,
  67. # and gateway_ip if no IPv4 addresses are used for a custom network, or set
  68. # ipv6: true, and the network/<network>.yaml file will be configured as IPv6.
  69. #
  70. # For configuring both IPv4 and IPv6 on the same interface, use two separate
  71. # networks, and then assign both IPs to the same interface in a custom NIC
  72. # configuration templates.
  73. #
  74. # The ordering of the networks below will determine the order in which NICs
  75. # are assigned in the network/config/multiple-nics templates, beginning with
  76. # NIC2, Control Plane is always NIC1.
  77. - name: External
  78. vip: true
  79. name_lower: external
  80. vlan: 100
  81. ip_subnet: '10.0.0.0/24'
  82. allocation_pools: [{'start': '10.0.0.4', 'end': '10.0.0.250'}]
  83. gateway_ip: '10.0.0.1'
  84. ipv6_subnet: '2001:db8:fd00:1000::/64'
  85. ipv6_allocation_pools: [{'start': '2001:db8:fd00:1000::10', 'end': '2001:db8:fd00:1000:ffff:ffff:ffff:fffe'}]
  86. gateway_ipv6: '2001:db8:fd00:1000::1'
  87. - name: InternalApi
  88. name_lower: internal_api
  89. vip: true
  90. vlan: 10
  91. ip_subnet: '172.17.0.0/24'
  92. allocation_pools: [{'start': '172.17.0.10', 'end': '172.17.0.250'}]
  93. gateway_ip: '172.17.0.254'
  94. ipv6_subnet: 'fd00:fd00:fd00:1000::/64'
  95. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:1000::10', 'end': 'fd00:fd00:fd00:1000:ffff:ffff:ffff:fffe'}]
  96. gateway_ipv6: 'fd00:fd00:fd00:1000::1'
  97. subnets:
  98. internal_api_leaf1:
  99. vlan: 11
  100. ip_subnet: '172.17.1.0/24'
  101. allocation_pools: [{'start': '172.17.1.10', 'end': '172.17.1.250'}]
  102. gateway_ip: '172.17.1.254'
  103. ipv6_subnet: 'fd00:fd00:fd00:1001::/64'
  104. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:1001::10', 'end': 'fd00:fd00:fd00:1001:ffff:ffff:ffff:fffe'}]
  105. gateway_ipv6: 'fd00:fd00:fd00:1001::1'
  106. - name: Storage
  107. vip: true
  108. vlan: 20
  109. name_lower: storage
  110. ip_subnet: '172.18.0.0/24'
  111. allocation_pools: [{'start': '172.18.0.10', 'end': '172.18.0.250'}]
  112. gateway_ip: '172.18.0.254'
  113. ipv6_subnet: 'fd00:fd00:fd00:2000::/64'
  114. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:2000::10', 'end': 'fd00:fd00:fd00:2000:ffff:ffff:ffff:fffe'}]
  115. gateway_ipv6: 'fd00:fd00:fd00:2000::1'
  116. subnets:
  117. storage_leaf1:
  118. vlan: 21
  119. ip_subnet: '172.18.1.0/24'
  120. allocation_pools: [{'start': '172.18.1.10', 'end': '172.18.1.250'}]
  121. gateway_ip: '172.18.1.254'
  122. ipv6_subnet: 'fd00:fd00:fd00:2001::/64'
  123. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:2001::10', 'end': 'fd00:fd00:fd00:2001:ffff:ffff:ffff:fffe'}]
  124. gateway_ipv6: 'fd00:fd00:fd00:2001::1'
  125. - name: StorageMgmt
  126. name_lower: storage_mgmt
  127. vip: true
  128. vlan: 30
  129. ip_subnet: '172.19.0.0/24'
  130. allocation_pools: [{'start': '172.19.0.10', 'end': '172.19.0.250'}]
  131. gateway_ip: '172.19.0.254'
  132. ipv6_subnet: 'fd00:fd00:fd00:3000::/64'
  133. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:3000::10', 'end': 'fd00:fd00:fd00:3000:ffff:ffff:ffff:fffe'}]
  134. gateway_ipv6: 'fd00:fd00:fd00:3000::1'
  135. subnets:
  136. storage_mgmt_leaf1:
  137. vlan: 31
  138. ip_subnet: '172.19.1.0/24'
  139. allocation_pools: [{'start': '172.19.1.10', 'end': '172.19.1.250'}]
  140. gateway_ip: '172.19.1.254'
  141. ipv6_subnet: 'fd00:fd00:fd00:3001::/64'
  142. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:3001::10', 'end': 'fd00:fd00:fd00:3001:ffff:ffff:ffff:fffe'}]
  143. gateway_ipv6: 'fd00:fd00:fd00:3001::1'
  144. - name: Tenant
  145. vip: false # Tenant network does not use VIPs
  146. name_lower: tenant
  147. vlan: 40
  148. ip_subnet: '172.16.0.0/24'
  149. allocation_pools: [{'start': '172.16.0.10', 'end': '172.16.0.250'}]
  150. gateway_ip: '172.16.0.254'
  151. # Note that tenant tunneling is only compatible with IPv4 addressing at this time.
  152. ipv6_subnet: 'fd00:fd00:fd00:4000::/64'
  153. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:4000::10', 'end': 'fd00:fd00:fd00:4000:ffff:ffff:ffff:fffe'}]
  154. gateway_ipv6: 'fd00:fd00:fd00:4000::1'
  155. subnets:
  156. tenant_leaf1:
  157. vlan: 41
  158. ip_subnet: '172.16.1.0/24'
  159. allocation_pools: [{'start': '172.16.1.10', 'end': '172.16.1.250'}]
  160. gateway_ip: '172.16.1.254'
  161. ipv6_subnet: 'fd00:fd00:fd00:4001::/64'
  162. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:4001::10', 'end': 'fd00:fd00:fd00:4001:ffff:ffff:ffff:fffe'}]
  163. gateway_ipv6: 'fd00:fd00:fd00:4001::1'
  164. - name: Management
  165. # Management network is enabled by default for backwards-compatibility, but
  166. # is not included in any roles by default. Add to role definitions to use.
  167. enabled: true
  168. vip: false # Management network does not use VIPs
  169. name_lower: management
  170. vlan: 50
  171. ip_subnet: '172.20.0.0/24'
  172. allocation_pools: [{'start': '172.20.0.10', 'end': '172.20.0.250'}]
  173. gateway_ip: '172.20.0.254'
  174. ipv6_subnet: 'fd00:fd00:fd00:5000::/64'
  175. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:5000::10', 'end': 'fd00:fd00:fd00:5000:ffff:ffff:ffff:fffe'}]
  176. gateway_ipv6: 'fd00:fd00:fd00:5000::1'
  177. subnets:
  178. management_leaf1:
  179. enabled: true
  180. vlan: 51
  181. ip_subnet: '172.20.1.0/24'
  182. allocation_pools: [{'start': '172.20.1.10', 'end': '172.20.1.250'}]
  183. gateway_ip: '172.20.1.254'
  184. ipv6_subnet: 'fd00:fd00:fd00:5001::/64'
  185. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:5001::10', 'end': 'fd00:fd00:fd00:5001:ffff:ffff:ffff:fffe'}]
  186. gateway_ipv6: 'fd00:fd00:fd00:5001::1'