blob: 80ea69c415052e6f4c76b0a0422b4dfd1ee57fa5 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
mcord3e589142017-05-24 16:05:07 -070019tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: created by platform-install, need to add M-CORD services later
22
23imports:
24 - custom_types/xos.yaml
Pingping Lin040a7732017-10-05 20:23:40 -070025 - custom_types/vmme.yaml
mcord3e589142017-05-24 16:05:07 -070026
27topology_template:
28 node_templates:
29
30# site, image, fully created in deployment.yaml
31 {{ site_name }}:
32 type: tosca.nodes.Site
33
Pingping Lin040a7732017-10-05 20:23:40 -070034 m1.small:
35 type: tosca.nodes.Flavor
36 m1.large:
37 type: tosca.nodes.Flavor
38 m1.medium:
39 type: tosca.nodes.Flavor
40 m1.xlarge:
41 type: tosca.nodes.Flavor
42
43 trusty-server-multi-nic:
mcord3e589142017-05-24 16:05:07 -070044 type: tosca.nodes.Image
45
46# management networks, fully created in management-net.yaml
47 management:
48 type: tosca.nodes.network.Network.XOS
49 properties:
50 no-create: true
51 no-delete: true
52 no-update: true
53
54{% if use_management_hosts %}
55 management_hosts:
56 type: tosca.nodes.network.Network.XOS
57 properties:
58 no-create: true
59 no-delete: true
60 no-update: true
61{% endif %}
62
Andy Bavierc4379e22017-10-17 10:14:57 -070063# s1u_network is for connectivity between VMs, fully created in s1u-net.yaml
64 s1u_network:
Pingping Lin040a7732017-10-05 20:23:40 -070065 type: tosca.nodes.network.Network.XOS
66 properties:
67 no-create: true
68 no-delete: true
69 no-update: true
70
Andy Bavierc4379e22017-10-17 10:14:57 -070071# s11_network is for connectivity between VMs, fully created in s11-net.yaml
72 s11_network:
Pingping Lin040a7732017-10-05 20:23:40 -070073 type: tosca.nodes.network.Network.XOS
74 properties:
75 no-create: true
76 no-delete: true
77 no-update: true
78
Andy Bavierc4379e22017-10-17 10:14:57 -070079# s1mme_network is for connectivity between VMs, fully created in s1mme-net.yaml
80 s1mme_network:
Pingping Lin040a7732017-10-05 20:23:40 -070081 type: tosca.nodes.network.Network.XOS
82 properties:
83 no-create: true
84 no-delete: true
85 no-update: true
86
Andy Bavierc4379e22017-10-17 10:14:57 -070087# nbi_network is for connectivity between VMs, fully created in nbi-net.yaml
88 nbi_network:
89 type: tosca.nodes.network.Network.XOS
90 properties:
91 no-create: true
92 no-delete: true
93 no-update: true
94
95# sbi_network is for connectivity between VMs, fully created in sbi-net.yaml
96 sbi_network:
97 type: tosca.nodes.network.Network.XOS
98 properties:
99 no-create: true
100 no-delete: true
101 no-update: true
102
103# sgi_network is for connectivity between VMs, fully created in sgi-net.yaml
104 sgi_network:
Pingping Lin040a7732017-10-05 20:23:40 -0700105 type: tosca.nodes.network.Network.XOS
106 properties:
107 no-create: true
108 no-delete: true
109 no-update: true
110
mcord3e589142017-05-24 16:05:07 -0700111# ONOS_CORD, fully created in vtn.yaml
112 service#ONOS_CORD:
113 type: tosca.nodes.ONOSService
114 properties:
115 no-delete: true
116 no-create: true
117 no-update: true
118
119# ONOS_Fabric, fully created in fabric.yaml
120 service#ONOS_Fabric:
121 type: tosca.nodes.ONOSService
122 properties:
123 no-delete: true
124 no-create: true
125 no-update: true
126
Pingping Lin040a7732017-10-05 20:23:40 -0700127# CORD Services
128 service#vmme:
129 type: tosca.nodes.VMMEService
130 properties:
131 kind: vEPC
132 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
133 private_key_fn: /opt/xos/services/vmme/keys/mcord_rsa
134 artifacts:
135 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
136
137# CORD Slices
Andy Bavierc4379e22017-10-17 10:14:57 -0700138 {{ site_name }}_vmme:
Pingping Lin040a7732017-10-05 20:23:40 -0700139 description: vMME Service Slice
140 type: tosca.nodes.Slice
141 properties:
142 network: noauto
143 requirements:
144 - site:
145 node: mysite
146 relationship: tosca.relationships.MemberOfSite
147 - vmme_service:
148 node: service#vmme
149 relationship: tosca.relationships.MemberOfService
150 - default_image:
151 node: trusty-server-multi-nic
152 relationship: tosca.relationships.DefaultImage
153 - default_flavor:
154 node: m1.small
155 relationship: tosca.relationships.DefaultFlavor
156 - connection_to_management:
157 node: management
158 relationship: tosca.relationships.ConnectsToNetwork
Andy Bavierc4379e22017-10-17 10:14:57 -0700159 - connection_to_s11_network:
160 node: s11_network
Pingping Lin040a7732017-10-05 20:23:40 -0700161 relationship: tosca.relationships.ConnectsToNetwork
Andy Bavierc4379e22017-10-17 10:14:57 -0700162 - connection_to_s1mme_network:
163 node: s1mme_network
164 relationship: tosca.relationships.ConnectsToNetwork