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