blob: cd8605a2ac520f810d9a0acecb9a204cc6a8f24a [file] [log] [blame]
Pingping Lin77705562017-10-12 16:51:41 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3imports:
4 - custom_types/xos.yaml
Pingping Lin042ca632017-10-18 17:32:44 -07005 - custom_types/site.yaml
6 - custom_types/slice.yaml
7 - custom_types/flavor.yaml
8 - custom_types/network.yaml
9 - custom_types/networktemplate.yaml
Pingping Lin77705562017-10-12 16:51:41 -070010
11description: network for south bound interface (sbi)
12
13topology_template:
14 node_templates:
15
16# site, fully created in deployment.yaml
17 {{ site_name }}:
18 type: tosca.nodes.Site
Pingping Lin042ca632017-10-18 17:32:44 -070019 properties:
20 name: {{ site_name }}
Pingping Lin77705562017-10-12 16:51:41 -070021
22# sbi network
23 sbi_template:
24 type: tosca.nodes.NetworkTemplate
25 properties:
Pingping Lin042ca632017-10-18 17:32:44 -070026 name: sbi_template
Pingping Lin77705562017-10-12 16:51:41 -070027 visibility: private
28 translation: none
29 vtn_kind: PRIVATE
30
31 sbi_network:
Pingping Lin042ca632017-10-18 17:32:44 -070032 type: tosca.nodes.Network
Pingping Lin77705562017-10-12 16:51:41 -070033 properties:
Pingping Lin042ca632017-10-18 17:32:44 -070034 name: sbi_network
35 subnet: 114.0.0.0/24
Pingping Lin77705562017-10-12 16:51:41 -070036 requirements:
Pingping Lin042ca632017-10-18 17:32:44 -070037 - template:
Pingping Lin77705562017-10-12 16:51:41 -070038 node: sbi_template
Pingping Lin042ca632017-10-18 17:32:44 -070039 relationship: tosca.relationships.BelongsToOne
Pingping Lin77705562017-10-12 16:51:41 -070040 - owner:
41 node: {{ site_name }}_sbi
Pingping Lin042ca632017-10-18 17:32:44 -070042 relationship: tosca.relationships.BelongsToOne
Pingping Lin77705562017-10-12 16:51:41 -070043
44 {{ site_name }}_sbi:
45 description: This slice exists solely to own the private network
46 type: tosca.nodes.Slice
47 properties:
Pingping Lin042ca632017-10-18 17:32:44 -070048 name: {{ site_name }}_sbi
49 default_isolation: vm
Pingping Lin77705562017-10-12 16:51:41 -070050 requirements:
51 - site:
52 node: {{ site_name }}
Pingping Lin042ca632017-10-18 17:32:44 -070053 relationship: tosca.relationships.BelongsToOne
Pingping Lin77705562017-10-12 16:51:41 -070054