blob: ef5787e9005af468b73ef815007aed843278f6b6 [file] [log] [blame]
Andy Bavier3ade4a52017-12-20 10:40:16 -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 Williams2da41af2018-01-10 17:48:23 -07009description: vsg network config, generated by rcord profile
Andy Bavier3ade4a52017-12-20 10:40:16 -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# vsg network
22 vsg_template:
23 type: tosca.nodes.NetworkTemplate
24 properties:
25 name: vsg_template
26 visibility: private
27 translation: none
28 vtn_kind: VSG
29
30 vsg_network:
31 type: tosca.nodes.Network
32 properties:
33 name: vsg_network
Zack Williams2da41af2018-01-10 17:48:23 -070034 subnet: {{ addresspool_vsg_cidr }}
Andy Bavier3ade4a52017-12-20 10:40:16 -070035 requirements:
36 - template:
37 node: vsg_template
38 relationship: tosca.relationships.BelongsToOne
39 - owner:
40 node: {{ site_name }}_vsg
41 relationship: tosca.relationships.BelongsToOne
42
43 {{ site_name }}_vsg:
44 description: This slice exists solely to own the private network
45 type: tosca.nodes.Slice
46 properties:
47 name: {{ site_name }}_vsg
48 network: noauto
49 requirements:
50 - site:
51 node: {{ site_name }}
52 relationship: tosca.relationships.BelongsToOne
53