Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | imports: |
| 4 | - custom_types/xos.yaml |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -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 |
| 10 | |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 11 | |
| 12 | description: network for S11 interface |
| 13 | |
| 14 | topology_template: |
| 15 | node_templates: |
| 16 | |
| 17 | # site, fully created in deployment.yaml |
| 18 | {{ site_name }}: |
| 19 | type: tosca.nodes.Site |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 20 | properties: |
| 21 | name: {{ site_name }} |
| 22 | |
| 23 | # mysite_vMME_slice: |
| 24 | # type: tosca.nodes.Slice |
| 25 | # properties: |
| 26 | # must-exist: true |
| 27 | # name: mysite_vMME_slice |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 28 | |
| 29 | # s11 network |
| 30 | s11_template: |
| 31 | type: tosca.nodes.NetworkTemplate |
| 32 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 33 | name: s11_template |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 34 | visibility: private |
| 35 | translation: none |
| 36 | vtn_kind: PRIVATE |
| 37 | |
| 38 | s11_network: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 39 | type: tosca.nodes.Network |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 40 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 41 | name: s11_network |
| 42 | subnet: 112.0.0.0/24 |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 43 | requirements: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 44 | - template: |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 45 | node: s11_template |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 46 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 47 | - owner: |
| 48 | node: {{ site_name }}_s11 |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 49 | relationship: tosca.relationships.BelongsToOne |
| 50 | # - slices: |
| 51 | # node: mysite_vMME_slice |
| 52 | # relationship: tosca.relationships.BelongsToMany |
| 53 | |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 54 | |
| 55 | {{ site_name }}_s11: |
| 56 | description: This slice exists solely to own the private network |
| 57 | type: tosca.nodes.Slice |
| 58 | properties: |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 59 | name: {{ site_name }}_s11 |
| 60 | default_isolation: vm |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 61 | requirements: |
| 62 | - site: |
| 63 | node: {{ site_name }} |
Pingping Lin | 2da4fec | 2017-10-16 17:50:54 -0700 | [diff] [blame] | 64 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | fb62953 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 65 | |