blob: 9bcf397572f444e72c8d2534149a2a2fc76aa98c [file] [log] [blame]
Pingping Lin040a7732017-10-05 20:23:40 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3imports:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -08004 - custom_types/network.yaml
5 - custom_types/networktemplate.yaml
6 - custom_types/slice.yaml
7 - custom_types/site.yaml
Pingping Lin040a7732017-10-05 20:23:40 -07008
9description: vsg network config, generated by platform-install
10
11topology_template:
12 node_templates:
13
14# site, fully created in deployment.yaml
15 {{ site_name }}:
16 type: tosca.nodes.Site
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080017 properties:
18 name: {{ site_name }}
19 must-exist: true
Pingping Lin040a7732017-10-05 20:23:40 -070020
21# vsg network
22 vsg_template:
23 type: tosca.nodes.NetworkTemplate
24 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080025 name: vsg_template
Pingping Lin040a7732017-10-05 20:23:40 -070026 visibility: private
27 translation: none
28 vtn_kind: VSG
29
30 vsg_network:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080031 type: tosca.nodes.Network
Pingping Lin040a7732017-10-05 20:23:40 -070032 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080033 name: vsg_network
34 subnet: 101.0.0.0/24
Pingping Lin040a7732017-10-05 20:23:40 -070035 requirements:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080036 - template:
Pingping Lin040a7732017-10-05 20:23:40 -070037 node: vsg_template
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080038 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -070039 - owner:
40 node: {{ site_name }}_vsg
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080041 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -070042
43 {{ site_name }}_vsg:
44 description: This slice exists solely to own the private network
45 type: tosca.nodes.Slice
46 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080047 name: {{ site_name }}_vsg
Pingping Lin040a7732017-10-05 20:23:40 -070048 network: noauto
49 requirements:
50 - site:
51 node: {{ site_name }}
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080052 relationship: tosca.relationships.BelongsToOne
Pingping Lin040a7732017-10-05 20:23:40 -070053
54