Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | imports: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 4 | - custom_types/network.yaml |
| 5 | - custom_types/networktemplate.yaml |
| 6 | - custom_types/slice.yaml |
| 7 | - custom_types/site.yaml |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 8 | |
| 9 | description: wan network config, generated by platform-install |
| 10 | |
| 11 | topology_template: |
| 12 | node_templates: |
| 13 | |
| 14 | # site, fully created in deployment.yaml |
| 15 | {{ site_name }}: |
| 16 | type: tosca.nodes.Site |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 17 | properties: |
| 18 | name: {{ site_name }} |
| 19 | must-exist: true |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 20 | |
| 21 | # wan network |
| 22 | wan_template: |
| 23 | type: tosca.nodes.NetworkTemplate |
| 24 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 25 | name: wan_template |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 26 | visibility: private |
| 27 | translation: none |
| 28 | vtn_kind: PRIVATE |
| 29 | |
| 30 | wan_network: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 31 | type: tosca.nodes.Network |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 32 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 33 | name: wan_network |
| 34 | subnet: 102.0.0.0/24 |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 35 | requirements: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 36 | - template: |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 37 | node: wan_template |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 38 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 39 | - owner: |
| 40 | node: {{ site_name }}_wan |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 41 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 42 | |
| 43 | {{ site_name }}_wan: |
| 44 | description: This slice exists solely to own the private network |
| 45 | type: tosca.nodes.Slice |
| 46 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 47 | name: {{ site_name }}_wan |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 48 | network: noauto |
| 49 | requirements: |
| 50 | - site: |
| 51 | node: {{ site_name }} |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 52 | relationship: tosca.relationships.BelongsToOne |
Pingping Lin | 040a773 | 2017-10-05 20:23:40 -0700 | [diff] [blame] | 53 | |
| 54 | |