blob: 0678e6c60fc3c1aef7cd8f75455f235a0787824c [file] [log] [blame]
Zack Williams2c010532018-01-18 10:22:57 -07001---
Andy Baviere6478b22017-12-21 13:17:56 -07002tosca_definitions_version: tosca_simple_yaml_1_0
3
4imports:
5 - custom_types/network.yaml
6 - custom_types/networktemplate.yaml
7 - custom_types/slice.yaml
8 - custom_types/site.yaml
9
Zack Williams2c010532018-01-18 10:22:57 -070010description: shared network config, generated by mcord profile
Andy Baviere6478b22017-12-21 13:17:56 -070011
12topology_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 Williams2c010532018-01-18 10:22:57 -070026 name: shared_template
27 visibility: private
28 translation: none
29 vtn_kind: PRIVATE
Andy Baviere6478b22017-12-21 13:17:56 -070030
31 shared_network:
32 type: tosca.nodes.Network
33 properties:
Zack Williams2c010532018-01-18 10:22:57 -070034 name: shared_network
35 subnet: 100.0.0.0/24
Andy Baviere6478b22017-12-21 13:17:56 -070036 requirements:
Zack Williams2c010532018-01-18 10:22:57 -070037 - template:
38 node: shared_template
39 relationship: tosca.relationships.BelongsToOne
40 - owner:
41 node: {{ site_name }}_shared
42 relationship: tosca.relationships.BelongsToOne
Andy Baviere6478b22017-12-21 13:17:56 -070043
44 {{ site_name }}_shared:
45 description: This slice exists solely to own the private network
46 type: tosca.nodes.Slice
47 properties:
Zack Williams2c010532018-01-18 10:22:57 -070048 name: {{ site_name }}_shared
49 network: noauto
Andy Baviere6478b22017-12-21 13:17:56 -070050 requirements:
Zack Williams2c010532018-01-18 10:22:57 -070051 - site:
52 node: {{ site_name }}
53 relationship: tosca.relationships.BelongsToOne
Andy Baviere6478b22017-12-21 13:17:56 -070054