blob: 0445f0af8126ff3acfd53518f5aba101b0559a34 [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 Line13939c2017-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 Line13939c2017-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
Pingping Lin77705562017-10-12 16:51:41 -070063# s1u_network is for connectivity between VMs, fully created in s1u-net.yaml
64 s1u_network:
65 type: tosca.nodes.network.Network.XOS
66 properties:
67 no-create: true
68 no-delete: true
69 no-update: true
70# s11_network is for connectivity between VMs, fully created in s11-net.yaml
71 s11_network:
72 type: tosca.nodes.network.Network.XOS
73 properties:
74 no-create: true
75 no-delete: true
76 no-update: true
77# nbi_network is for connectivity between VMs, fully created in nbi-net.yaml
78 nbi_network:
79 type: tosca.nodes.network.Network.XOS
80 properties:
81 no-create: true
82 no-delete: true
83 no-update: true
84# sbi_network is for connectivity between VMs, fully created in sbi-net.yaml
85 sbi_network:
86 type: tosca.nodes.network.Network.XOS
87 properties:
88 no-create: true
89 no-delete: true
90 no-update: true
91# sgi_network is for connectivity between VMs, fully created in sgi-net.yaml
92 sgi_network:
93 type: tosca.nodes.network.Network.XOS
94 properties:
95 no-create: true
96 no-delete: true
97 no-update: true
98
Pingping Line13939c2017-10-05 20:23:40 -070099# shared_network is for connectivity between VMs, fully created in shared-net.yaml
100 shared_network:
101 type: tosca.nodes.network.Network.XOS
102 properties:
103 no-create: true
104 no-delete: true
105 no-update: true
106
107# wan_network for vPGWU and its upstream connectivity, fully created in wan-net.yaml
108 wan_network:
109 type: tosca.nodes.network.Network.XOS
110 properties:
111 no-create: true
112 no-delete: true
113 no-update: true
114
115# VLAN networks for RRH and vBBU, fully created in vsg-net.yaml
116 vsg_network:
117 type: tosca.nodes.network.Network.XOS
118 properties:
119 no-create: true
120 no-delete: true
121 no-update: true
122
123# flat network for vMME, vSGWC, vSGWU, to connect to RRU, fully created in flat-net.yaml
124 flat_network:
125 type: tosca.nodes.network.Network.XOS
126 properties:
127 no-create: true
128 no-delete: true
129 no-update: true
130
mcord3e589142017-05-24 16:05:07 -0700131# ONOS_CORD, fully created in vtn.yaml
132 service#ONOS_CORD:
133 type: tosca.nodes.ONOSService
134 properties:
135 no-delete: true
136 no-create: true
137 no-update: true
138
139# ONOS_Fabric, fully created in fabric.yaml
140 service#ONOS_Fabric:
141 type: tosca.nodes.ONOSService
142 properties:
143 no-delete: true
144 no-create: true
145 no-update: true
146
Pingping Line13939c2017-10-05 20:23:40 -0700147# CORD Services
148 service#vmme:
149 type: tosca.nodes.VMMEService
150 properties:
151 kind: vEPC
152 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
153 private_key_fn: /opt/xos/services/vmme/keys/mcord_rsa
154 artifacts:
155 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
156
157# CORD Slices
158 mysite_vMME_slice:
159 description: vMME Service Slice
160 type: tosca.nodes.Slice
161 properties:
162 network: noauto
163 requirements:
164 - site:
165 node: mysite
166 relationship: tosca.relationships.MemberOfSite
167 - vmme_service:
168 node: service#vmme
169 relationship: tosca.relationships.MemberOfService
170 - default_image:
171 node: trusty-server-multi-nic
172 relationship: tosca.relationships.DefaultImage
173 - default_flavor:
174 node: m1.small
175 relationship: tosca.relationships.DefaultFlavor
176 - connection_to_management:
177 node: management
178 relationship: tosca.relationships.ConnectsToNetwork
179 - connection_to_shared_network:
180 node: shared_network
181 relationship: tosca.relationships.ConnectsToNetwork
182 - connection_to_flat_network:
183 node: flat_network
184 relationship: tosca.relationships.ConnectsToNetwork