blob: ad3287f7a0a571de82289f4742371ad5ddc00891 [file] [log] [blame]
Andy Baviere6478b22017-12-21 13:17:56 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3imports:
4 - custom_types/network.yaml
5 - custom_types/networktemplate.yaml
6 - custom_types/slice.yaml
7 - custom_types/site.yaml
8
Zack Williams2c010532018-01-18 10:22:57 -07009description: wan network config, generated by mcord profile
Andy Baviere6478b22017-12-21 13:17:56 -070010
11topology_template:
12 node_templates:
13
14# site, fully created in deployment.yaml
15 {{ site_name }}:
16 type: tosca.nodes.Site
17 properties:
18 name: {{ site_name }}
19 must-exist: true
20
21# wan network
22 wan_template:
23 type: tosca.nodes.NetworkTemplate
24 properties:
Zack Williams2c010532018-01-18 10:22:57 -070025 name: wan_template
26 visibility: private
27 translation: none
28 vtn_kind: PRIVATE
Andy Baviere6478b22017-12-21 13:17:56 -070029
30 wan_network:
31 type: tosca.nodes.Network
32 properties:
Zack Williams2c010532018-01-18 10:22:57 -070033 name: wan_network
34 subnet: 102.0.0.0/24
Andy Baviere6478b22017-12-21 13:17:56 -070035 requirements:
Zack Williams2c010532018-01-18 10:22:57 -070036 - template:
37 node: wan_template
38 relationship: tosca.relationships.BelongsToOne
39 - owner:
40 node: {{ site_name }}_wan
41 relationship: tosca.relationships.BelongsToOne
Andy Baviere6478b22017-12-21 13:17:56 -070042
43 {{ site_name }}_wan:
44 description: This slice exists solely to own the private network
45 type: tosca.nodes.Slice
46 properties:
Zack Williams2c010532018-01-18 10:22:57 -070047 name: {{ site_name }}_wan
48 network: noauto
Andy Baviere6478b22017-12-21 13:17:56 -070049 requirements:
Zack Williams2c010532018-01-18 10:22:57 -070050 - site:
51 node: {{ site_name }}
52 relationship: tosca.relationships.BelongsToOne
Andy Baviere6478b22017-12-21 13:17:56 -070053