Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | imports: |
Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -0700 | [diff] [blame] | 4 | - custom_types/site.yaml |
| 5 | - custom_types/slice.yaml |
| 6 | - custom_types/flavor.yaml |
| 7 | - custom_types/network.yaml |
| 8 | - custom_types/networktemplate.yaml |
| 9 | |
| 10 | description: flat network for connecting from VM in CORD to servers outside |
| 11 | |
| 12 | topology_template: |
| 13 | node_templates: |
| 14 | |
| 15 | # site, fully created in deployment.yaml |
| 16 | {{ site_name }}: |
| 17 | type: tosca.nodes.Site |
| 18 | properties: |
| 19 | name: {{ site_name }} |
| 20 | |
| 21 | # flat network |
| 22 | flat_template: |
| 23 | type: tosca.nodes.NetworkTemplate |
| 24 | properties: |
| 25 | name: flat_template |
| 26 | visibility: private |
| 27 | translation: none |
| 28 | vtn_kind: FLAT |
| 29 | |
| 30 | flat_network: |
| 31 | type: tosca.nodes.Network |
| 32 | properties: |
| 33 | name: flat_network |
| 34 | subnet: 103.0.0.0/24 |
| 35 | permit_all_slices: true |
| 36 | requirements: |
| 37 | - template: |
| 38 | node: flat_template |
| 39 | relationship: tosca.relationships.BelongsToOne |
| 40 | - owner: |
| 41 | node: {{ site_name }}_flat |
| 42 | relationship: tosca.relationships.MemberOfSlice |
| 43 | |
| 44 | {{ site_name }}_flat: |
| 45 | description: This slice exists solely to own the flat network |
| 46 | type: tosca.nodes.Slice |
| 47 | properties: |
| 48 | name: {{ site_name }}_flat |
| 49 | default_isolation: vm |
| 50 | network: noauto |
| 51 | requirements: |
| 52 | - site: |
| 53 | node: {{ site_name }} |
| 54 | relationship: tosca.relationships.BelongsToOne |
| 55 | |