blob: edc649acb61afa07f86b22043bf21473b7cfd85e [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 north bound interface (nbi)
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# nbi network
23 nbi_template:
24 type: tosca.nodes.NetworkTemplate
25 properties:
Pingping Lin042ca632017-10-18 17:32:44 -070026 name: nbi_template
Pingping Lin77705562017-10-12 16:51:41 -070027 visibility: private
28 translation: none
29 vtn_kind: PRIVATE
30
31 nbi_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: nbi_network
35 subnet: 113.0.0.0/24
Andy Bavieree0c91b2017-10-19 13:05:39 -070036 permit_all_slices: true
Pingping Lin77705562017-10-12 16:51:41 -070037 requirements:
Pingping Lin042ca632017-10-18 17:32:44 -070038 - template:
Pingping Lin77705562017-10-12 16:51:41 -070039 node: nbi_template
Pingping Lin042ca632017-10-18 17:32:44 -070040 relationship: tosca.relationships.BelongsToOne
Pingping Lin77705562017-10-12 16:51:41 -070041 - owner:
42 node: {{ site_name }}_nbi
Pingping Lin042ca632017-10-18 17:32:44 -070043 relationship: tosca.relationships.BelongsToOne
Pingping Lin77705562017-10-12 16:51:41 -070044
45 {{ site_name }}_nbi:
46 description: This slice exists solely to own the private network
47 type: tosca.nodes.Slice
48 properties:
Pingping Lin042ca632017-10-18 17:32:44 -070049 name: {{ site_name }}_nbi
50 default_isolation: vm
Andy Bavieree0c91b2017-10-19 13:05:39 -070051 network: noauto
Pingping Lin77705562017-10-12 16:51:41 -070052 requirements:
53 - site:
54 node: {{ site_name }}
Pingping Lin042ca632017-10-18 17:32:44 -070055 relationship: tosca.relationships.BelongsToOne
Pingping Lin77705562017-10-12 16:51:41 -070056