Zack Williams | 2c01053 | 2018-01-18 10:22:57 -0700 | [diff] [blame^] | 1 | --- |
Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -0700 | [diff] [blame] | 2 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 3 | |
| 4 | imports: |
| 5 | - custom_types/network.yaml |
| 6 | - custom_types/networktemplate.yaml |
| 7 | - custom_types/slice.yaml |
| 8 | - custom_types/site.yaml |
| 9 | |
Zack Williams | 2c01053 | 2018-01-18 10:22:57 -0700 | [diff] [blame^] | 10 | description: shared network config, generated by mcord profile |
Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -0700 | [diff] [blame] | 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 | must-exist: true |
| 21 | |
| 22 | # shared network |
| 23 | shared_template: |
| 24 | type: tosca.nodes.NetworkTemplate |
| 25 | properties: |
Zack Williams | 2c01053 | 2018-01-18 10:22:57 -0700 | [diff] [blame^] | 26 | name: shared_template |
| 27 | visibility: private |
| 28 | translation: none |
| 29 | vtn_kind: PRIVATE |
Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -0700 | [diff] [blame] | 30 | |
| 31 | shared_network: |
| 32 | type: tosca.nodes.Network |
| 33 | properties: |
Zack Williams | 2c01053 | 2018-01-18 10:22:57 -0700 | [diff] [blame^] | 34 | name: shared_network |
| 35 | subnet: 100.0.0.0/24 |
Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -0700 | [diff] [blame] | 36 | requirements: |
Zack Williams | 2c01053 | 2018-01-18 10:22:57 -0700 | [diff] [blame^] | 37 | - template: |
| 38 | node: shared_template |
| 39 | relationship: tosca.relationships.BelongsToOne |
| 40 | - owner: |
| 41 | node: {{ site_name }}_shared |
| 42 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -0700 | [diff] [blame] | 43 | |
| 44 | {{ site_name }}_shared: |
| 45 | description: This slice exists solely to own the private network |
| 46 | type: tosca.nodes.Slice |
| 47 | properties: |
Zack Williams | 2c01053 | 2018-01-18 10:22:57 -0700 | [diff] [blame^] | 48 | name: {{ site_name }}_shared |
| 49 | network: noauto |
Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -0700 | [diff] [blame] | 50 | requirements: |
Zack Williams | 2c01053 | 2018-01-18 10:22:57 -0700 | [diff] [blame^] | 51 | - site: |
| 52 | node: {{ site_name }} |
| 53 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -0700 | [diff] [blame] | 54 | |