heat_stack_segmentation_ids.yaml.j2 583 B

12345678910111213141516171819202122232425
  1. heat_template_version: pike
  2. description: Simple template to generate the needed vlan ids
  3. parameters:
  4. number_of_vlan_ids:
  5. type: number
  6. description: Number of vlan segmentation IDs
  7. default: 1
  8. resources:
  9. segmentation_ids:
  10. type: OS::Heat::ResourceGroup
  11. properties:
  12. count: { get_param: number_of_vlan_ids }
  13. removal_policies: [ { "resource_list": ["0"] } ]
  14. resource_def:
  15. type: OS::Heat::Value
  16. properties:
  17. type: string
  18. value: "%index%"
  19. outputs:
  20. vlan_ids:
  21. value: { get_attr: [segmentation_ids, value] }