Pingping Lin | 7770556 | 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 | 042ca63 | 2017-10-18 17:32:44 -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 | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 10 | |
| 11 | description: network for south bound interface (sbi) |
| 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 | 042ca63 | 2017-10-18 17:32:44 -0700 | [diff] [blame^] | 19 | properties: |
| 20 | name: {{ site_name }} |
Pingping Lin | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 21 | |
| 22 | # sbi network |
| 23 | sbi_template: |
| 24 | type: tosca.nodes.NetworkTemplate |
| 25 | properties: |
Pingping Lin | 042ca63 | 2017-10-18 17:32:44 -0700 | [diff] [blame^] | 26 | name: sbi_template |
Pingping Lin | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 27 | visibility: private |
| 28 | translation: none |
| 29 | vtn_kind: PRIVATE |
| 30 | |
| 31 | sbi_network: |
Pingping Lin | 042ca63 | 2017-10-18 17:32:44 -0700 | [diff] [blame^] | 32 | type: tosca.nodes.Network |
Pingping Lin | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 33 | properties: |
Pingping Lin | 042ca63 | 2017-10-18 17:32:44 -0700 | [diff] [blame^] | 34 | name: sbi_network |
| 35 | subnet: 114.0.0.0/24 |
Pingping Lin | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 36 | requirements: |
Pingping Lin | 042ca63 | 2017-10-18 17:32:44 -0700 | [diff] [blame^] | 37 | - template: |
Pingping Lin | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 38 | node: sbi_template |
Pingping Lin | 042ca63 | 2017-10-18 17:32:44 -0700 | [diff] [blame^] | 39 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 40 | - owner: |
| 41 | node: {{ site_name }}_sbi |
Pingping Lin | 042ca63 | 2017-10-18 17:32:44 -0700 | [diff] [blame^] | 42 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 43 | |
| 44 | {{ site_name }}_sbi: |
| 45 | description: This slice exists solely to own the private network |
| 46 | type: tosca.nodes.Slice |
| 47 | properties: |
Pingping Lin | 042ca63 | 2017-10-18 17:32:44 -0700 | [diff] [blame^] | 48 | name: {{ site_name }}_sbi |
| 49 | default_isolation: vm |
Pingping Lin | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 50 | requirements: |
| 51 | - site: |
| 52 | node: {{ site_name }} |
Pingping Lin | 042ca63 | 2017-10-18 17:32:44 -0700 | [diff] [blame^] | 53 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 7770556 | 2017-10-12 16:51:41 -0700 | [diff] [blame] | 54 | |