Andy Bavier | 89a9542 | 2016-11-02 14:38:39 -0400 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Setup a generic slice on the pod |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
| 10 | |
| 11 | management: |
| 12 | type: tosca.nodes.network.Network.XOS |
| 13 | properties: |
| 14 | no-create: true |
| 15 | no-delete: true |
| 16 | no-update: true |
| 17 | |
| 18 | public: |
| 19 | type: tosca.nodes.network.Network.XOS |
| 20 | properties: |
| 21 | no-create: true |
| 22 | no-delete: true |
| 23 | no-update: true |
| 24 | |
| 25 | {{ local_site }}: |
| 26 | type: tosca.nodes.Site |
| 27 | |
| 28 | {{ image }}: |
| 29 | type: tosca.nodes.Image |
| 30 | |
| 31 | {{ local_site }}_{{ slice_name }}: |
| 32 | description: {{ slice_description }} |
| 33 | type: tosca.nodes.Slice |
| 34 | properties: |
| 35 | network: noauto |
| 36 | requirements: |
| 37 | - site: |
| 38 | node: {{ local_site }} |
| 39 | relationship: tosca.relationships.MemberOfSite |
| 40 | - management: |
| 41 | node: management |
| 42 | relationship: tosca.relationships.ConnectsToNetwork |
| 43 | - public: |
| 44 | node: public |
| 45 | relationship: tosca.relationships.ConnectsToNetwork |
| 46 | - image: |
| 47 | node: {{ image }} |
| 48 | relationship: tosca.relationships.DefaultImage |