blob: b306ac5d04e9f49a5a348eee80957b289de73407 [file] [log] [blame]
Matteo Scandolo36390782019-01-24 15:00:07 -08001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onf-mcord-pod1-fabric.yaml http://10.90.0.131:30007/run
16
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/switch.yaml
20 - custom_types/switchport.yaml
21 - custom_types/portinterface.yaml
22 - custom_types/fabricipaddress.yaml
Matteo Scandolod0e5ab02019-02-04 09:07:41 -080023 - custom_types/site.yaml
24 - custom_types/deployment.yaml
25 - custom_types/sitedeployment.yaml
26 - custom_types/node.yaml
27 - custom_types/vrouterservice.yaml
28 - custom_types/vrouterserviceinstance.yaml
Matteo Scandolo36390782019-01-24 15:00:07 -080029
30description: Configures the ONF SEBA POD with AT&T workflow
31
32topology_template:
33 node_templates:
Matteo Scandolo4c4cafc2019-01-29 17:17:39 -080034
35 # Site deployment
36 mySite:
37 type: tosca.nodes.Site
38 properties:
39 name: mysite
40 login_base: opencord
41 abbreviated_name: ms
42 site_url: http://opencord.org/
43 hosts_nodes: true
44
45 myDeployment:
46 type: tosca.nodes.Deployment
47 properties:
48 name: mydeployment
49
50 site_deployment:
51 type: tosca.nodes.SiteDeployment
52 requirements:
53 - site:
54 node: mySite
55 relationship: tosca.relationships.BelongsToOne
56 - deployment:
57 node: myDeployment
58 relationship: tosca.relationships.BelongsToOne
59
60 # compute nodes
61 node#node1:
62 type: tosca.nodes.Node
63 properties:
64 dataPlaneIntf: eth2
65 dataPlaneIp: 118.0.0.201
66 name: node1
67 requirements:
68 - site_deployment:
69 node: site_deployment
70 relationship: tosca.relationships.BelongsToOne
71
72 node#node2:
73 type: tosca.nodes.Node
74 properties:
75 dataPlaneIntf: eth2
76 dataPlaneIp: 118.0.0.202
77 name: node2
78 requirements:
79 - site_deployment:
80 node: site_deployment
81 relationship: tosca.relationships.BelongsToOne
82
83 node#node3:
84 type: tosca.nodes.Node
85 properties:
86 dataPlaneIntf: eth2
87 dataPlaneIp: 118.0.0.203
88 name: node3
89 requirements:
90 - site_deployment:
91 node: site_deployment
92 relationship: tosca.relationships.BelongsToOne
93
94 vroutersi#calico:
95 type: tosca.nodes.VRouterServiceInstance
96 properties:
97 name: calico
98
Matteo Scandolo36390782019-01-24 15:00:07 -080099 # Fabric configuration
100 switch#leaf_1:
101 type: tosca.nodes.Switch
102 properties:
103 driver: ofdpa3
104 ipv4Loopback: 192.168.0.204
105 ipv4NodeSid: 214
106 isEdgeRouter: true
107 name: Agg Switch
108 ofId: of:0000000000000001
109 routerMac: 54:87:de:ad:be:ef
110
111 # Node1 Port
112 port#node_1_port:
113 type: tosca.nodes.SwitchPort
114 properties:
Matteo Scandolod0e5ab02019-02-04 09:07:41 -0800115 portId: 33
Matteo Scandolo36390782019-01-24 15:00:07 -0800116 requirements:
117 - switch:
118 node: switch#leaf_1
119 relationship: tosca.relationships.BelongsToOne
120
Matteo Scandolo36390782019-01-24 15:00:07 -0800121 interface#port_1_interface:
122 type: tosca.nodes.PortInterface
123 properties:
124 vlanUntagged: 20
Matteo Scandolo36390782019-01-24 15:00:07 -0800125 name: node_1
126 requirements:
127 - port:
128 node: port#node_1_port
129 relationship: tosca.relationships.BelongsToOne
130
Matteo Scandolo36390782019-01-24 15:00:07 -0800131 ip#port_1_ip_1:
132 type: tosca.nodes.FabricIpAddress
133 properties:
Matteo Scandoloa3ec88a2019-01-24 16:10:11 -0800134 ip: 13.1.1.0/24
Matteo Scandolo36390782019-01-24 15:00:07 -0800135 description: node_1_ip_1
136 requirements:
137 - interface:
138 node: interface#port_1_interface
139 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800140
141 ip#port_1_ip_2:
142 type: tosca.nodes.FabricIpAddress
143 properties:
144 ip: 119.0.0.254/24
145 description: node_1_ip_2
146 requirements:
147 - interface:
148 node: interface#port_1_interface
149 relationship: tosca.relationships.BelongsToOne
150
Matteo Scandolod0e5ab02019-02-04 09:07:41 -0800151 ip#port_1_ip_3:
152 type: tosca.nodes.FabricIpAddress
153 properties:
154 ip: 116.0.0.254/24
155 description: node_1_ip_3
156 requirements:
157 - interface:
158 node: interface#port_1_interface
159 relationship: tosca.relationships.BelongsToOne
160
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800161 # Node2 Port
162 port#node_2_port:
163 type: tosca.nodes.SwitchPort
164 properties:
Matteo Scandolod0e5ab02019-02-04 09:07:41 -0800165 portId: 34
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800166 requirements:
167 - switch:
168 node: switch#leaf_1
169 relationship: tosca.relationships.BelongsToOne
170
171 interface#port_2_interface:
172 type: tosca.nodes.PortInterface
173 properties:
174 vlanUntagged: 20
175 name: node_2
176 requirements:
177 - port:
178 node: port#node_2_port
179 relationship: tosca.relationships.BelongsToOne
180
181 ip#port_2_ip_1:
182 type: tosca.nodes.FabricIpAddress
183 properties:
Matteo Scandoloa3ec88a2019-01-24 16:10:11 -0800184 ip: 13.1.1.0/24
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800185 description: node_2_ip_1
186 requirements:
187 - interface:
188 node: interface#port_2_interface
189 relationship: tosca.relationships.BelongsToOne
190
191 ip#port_2_ip_2:
192 type: tosca.nodes.FabricIpAddress
193 properties:
194 ip: 119.0.0.254/24
195 description: node_2_ip_2
196 requirements:
197 - interface:
198 node: interface#port_2_interface
199 relationship: tosca.relationships.BelongsToOne
200
Matteo Scandolod0e5ab02019-02-04 09:07:41 -0800201 ip#port_2_ip_3:
202 type: tosca.nodes.FabricIpAddress
203 properties:
204 ip: 116.0.0.254/24
205 description: node_2_ip_3
206 requirements:
207 - interface:
208 node: interface#port_2_interface
209 relationship: tosca.relationships.BelongsToOne
210
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800211 # Node3 Port
212 port#node_3_port:
213 type: tosca.nodes.SwitchPort
214 properties:
Matteo Scandolod0e5ab02019-02-04 09:07:41 -0800215 portId: 35
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800216 requirements:
217 - switch:
218 node: switch#leaf_1
219 relationship: tosca.relationships.BelongsToOne
220
221 interface#port_3_interface:
222 type: tosca.nodes.PortInterface
223 properties:
224 vlanUntagged: 20
225 name: node_3
226 requirements:
227 - port:
228 node: port#node_3_port
229 relationship: tosca.relationships.BelongsToOne
230
231 ip#port_3_ip_1:
232 type: tosca.nodes.FabricIpAddress
233 properties:
Matteo Scandoloa3ec88a2019-01-24 16:10:11 -0800234 ip: 13.1.1.0/24
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800235 description: node_3_ip_1
236 requirements:
237 - interface:
238 node: interface#port_3_interface
239 relationship: tosca.relationships.BelongsToOne
240
241 ip#port_3_ip_2:
242 type: tosca.nodes.FabricIpAddress
243 properties:
244 ip: 119.0.0.254/24
245 description: node_3_ip_2
246 requirements:
247 - interface:
248 node: interface#port_3_interface
249 relationship: tosca.relationships.BelongsToOne
Matteo Scandolod0e5ab02019-02-04 09:07:41 -0800250
251 ip#port_3_ip_3:
252 type: tosca.nodes.FabricIpAddress
253 properties:
254 ip: 116.0.0.254/24
255 description: node_3_ip_2
256 requirements:
257 - interface:
258 node: interface#port_3_interface
259 relationship: tosca.relationships.BelongsToOne
260