Advertisement
Guest User

Untitled

a guest
Dec 27th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. (undercloud) [stack@queensX ~]$ cat tripleo-heat-templates/network_data.yaml
  2. # List of networks, used for j2 templating of enabled networks
  3. #
  4. # Supported values:
  5. #
  6. # name: Name of the network (mandatory)
  7. # name_lower: lowercase version of name used for filenames
  8. # (optional, defaults to name.lower())
  9. # enabled: Is the network enabled (optional, defaults to true)
  10. # vlan: vlan for the network (optional)
  11. # vip: Enable creation of a virtual IP on this network
  12. # ip_subnet: IP/CIDR, e.g. '192.168.24.0/24' or '2001:db8:fd00:1000::/64'
  13. # (optional, may use parameter defaults instead)
  14. # allocation_pools: IP range list e.g. [{'start':'10.0.0.4', 'end':'10.0.0.250'}]
  15. # gateway_ip: gateway for the network (optional, may use parameter defaults)
  16. # ipv6_subnet: Optional, sets default IPv6 subnet if IPv4 is already defined.
  17. # ipv6_allocation_pools: Set default IPv6 allocation pools if IPv4 allocation pools
  18. # are already defined.
  19. # ipv6_gateway: Set an IPv6 gateway if IPv4 gateway already defined.
  20. # ipv6: If ip_subnet not defined, this specifies that the network is IPv6-only.
  21. # NOTE: IP-related values set parameter defaults in templates, may be overridden,
  22. # either by operators, or e.g in environments/network-isolation-v6.yaml where we
  23. # set some default IPv6 addresses.
  24. # compat_name: for existing stack you may need to override the default
  25. # transformation for the resource's name.
  26. #
  27. # Example:
  28. # - name Example
  29. # vip: false
  30. # ip_subnet: '10.0.2.0/24'
  31. # allocation_pools: [{'start': '10.0.2.4', 'end': '10.0.2.250'}]
  32. # gateway_ip: '10.0.2.254'
  33. #
  34. # To support backward compatility, two versions of the network definitions will
  35. # be created, network/<network>.yaml and network/<network>_v6.yaml. Only
  36. # one of these files may be used in the deployment at a time, since the
  37. # parameters used for configuration are the same in both files. In the
  38. # future, this behavior may be changed to create only one file for custom
  39. # networks. You may specify IPv6 addresses for ip_subnet, allocation_pools,
  40. # and gateway_ip if no IPv4 addresses are used for a custom network, or set
  41. # ipv6: true, and the network/<network>.yaml file will be configured as IPv6.
  42. #
  43. # For configuring both IPv4 and IPv6 on the same interface, use two separate
  44. # networks, and then assign both IPs in the custom NIC configuration templates.
  45.  
  46. - name: External
  47. vip: true
  48. name_lower: external
  49. ip_subnet: '10.0.0.0/24'
  50. allocation_pools: [{'start': '10.0.0.4', 'end': '10.0.0.250'}]
  51. gateway_ip: '10.0.0.1'
  52. ipv6_subnet: '2001:db8:fd00:1000::/64'
  53. ipv6_allocation_pools: [{'start': '2001:db8:fd00:1000::10', 'end': '2001:db8:fd00:1000:ffff:ffff:ffff:fffe'}]
  54. gateway_ipv6: '2001:db8:fd00:1000::1'
  55. - name: InternalApi
  56. name_lower: internal_api
  57. vip: true
  58. ip_subnet: '172.16.2.0/24'
  59. allocation_pools: [{'start': '172.16.2.4', 'end': '172.16.2.250'}]
  60. ipv6_subnet: 'fd00:fd00:fd00:2000::/64'
  61. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:2000::10', 'end': 'fd00:fd00:fd00:2000:ffff:ffff:ffff:fffe'}]
  62. - name: Storage
  63. vip: true
  64. name_lower: storage
  65. ip_subnet: '172.16.1.0/24'
  66. allocation_pools: [{'start': '172.16.1.4', 'end': '172.16.1.250'}]
  67. ipv6_subnet: 'fd00:fd00:fd00:3000::/64'
  68. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:3000::10', 'end': 'fd00:fd00:fd00:3000:ffff:ffff:ffff:fffe'}]
  69. - name: StorageMgmt
  70. name_lower: storage_mgmt
  71. vip: true
  72. ip_subnet: '172.16.3.0/24'
  73. allocation_pools: [{'start': '172.16.3.4', 'end': '172.16.3.250'}]
  74. ipv6_subnet: 'fd00:fd00:fd00:4000::/64'
  75. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:4000::10', 'end': 'fd00:fd00:fd00:4000:ffff:ffff:ffff:fffe'}]
  76. - name: Tenant
  77. vip: false # Tenant network does not use VIPs
  78. name_lower: tenant
  79. ip_subnet: '172.16.0.0/24'
  80. allocation_pools: [{'start': '172.16.0.4', 'end': '172.16.0.250'}]
  81. ipv6_subnet: 'fd00:fd00:fd00:5000::/64'
  82. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:5000::10', 'end': 'fd00:fd00:fd00:5000:ffff:ffff:ffff:fffe'}]
  83. - name: Management
  84. # Management network is enabled by default for backwards-compatibility, but
  85. # is not included in any roles by default. Add to role definitions to use.
  86. enabled: true
  87. vip: false # Management network does not use VIPs
  88. name_lower: management
  89. ip_subnet: '10.0.1.0/24'
  90. allocation_pools: [{'start': '10.0.1.4', 'end': '10.0.1.250'}]
  91. ipv6_subnet: 'fd00:fd00:fd00:6000::/64'
  92. ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:6000::10', 'end': 'fd00:fd00:fd00:6000:ffff:ffff:ffff:fffe'}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement