blob: 39b143a92a4389750a120ddcdcad976881fd8868 [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
23
24description: Configures the ONF SEBA POD with AT&T workflow
25
26topology_template:
27 node_templates:
Matteo Scandolo4c4cafc2019-01-29 17:17:39 -080028
29 # Site deployment
30 mySite:
31 type: tosca.nodes.Site
32 properties:
33 name: mysite
34 login_base: opencord
35 abbreviated_name: ms
36 site_url: http://opencord.org/
37 hosts_nodes: true
38
39 myDeployment:
40 type: tosca.nodes.Deployment
41 properties:
42 name: mydeployment
43
44 site_deployment:
45 type: tosca.nodes.SiteDeployment
46 requirements:
47 - site:
48 node: mySite
49 relationship: tosca.relationships.BelongsToOne
50 - deployment:
51 node: myDeployment
52 relationship: tosca.relationships.BelongsToOne
53
54 # compute nodes
55 node#node1:
56 type: tosca.nodes.Node
57 properties:
58 dataPlaneIntf: eth2
59 dataPlaneIp: 118.0.0.201
60 name: node1
61 requirements:
62 - site_deployment:
63 node: site_deployment
64 relationship: tosca.relationships.BelongsToOne
65
66 node#node2:
67 type: tosca.nodes.Node
68 properties:
69 dataPlaneIntf: eth2
70 dataPlaneIp: 118.0.0.202
71 name: node2
72 requirements:
73 - site_deployment:
74 node: site_deployment
75 relationship: tosca.relationships.BelongsToOne
76
77 node#node3:
78 type: tosca.nodes.Node
79 properties:
80 dataPlaneIntf: eth2
81 dataPlaneIp: 118.0.0.203
82 name: node3
83 requirements:
84 - site_deployment:
85 node: site_deployment
86 relationship: tosca.relationships.BelongsToOne
87
88 vroutersi#calico:
89 type: tosca.nodes.VRouterServiceInstance
90 properties:
91 name: calico
92
Matteo Scandolo36390782019-01-24 15:00:07 -080093 # Fabric configuration
94 switch#leaf_1:
95 type: tosca.nodes.Switch
96 properties:
97 driver: ofdpa3
98 ipv4Loopback: 192.168.0.204
99 ipv4NodeSid: 214
100 isEdgeRouter: true
101 name: Agg Switch
102 ofId: of:0000000000000001
103 routerMac: 54:87:de:ad:be:ef
104
105 # Node1 Port
106 port#node_1_port:
107 type: tosca.nodes.SwitchPort
108 properties:
109 portId: 34
110 requirements:
111 - switch:
112 node: switch#leaf_1
113 relationship: tosca.relationships.BelongsToOne
114
Matteo Scandolo36390782019-01-24 15:00:07 -0800115 interface#port_1_interface:
116 type: tosca.nodes.PortInterface
117 properties:
118 vlanUntagged: 20
Matteo Scandolo36390782019-01-24 15:00:07 -0800119 name: node_1
120 requirements:
121 - port:
122 node: port#node_1_port
123 relationship: tosca.relationships.BelongsToOne
124
Matteo Scandolo36390782019-01-24 15:00:07 -0800125 ip#port_1_ip_1:
126 type: tosca.nodes.FabricIpAddress
127 properties:
Matteo Scandoloa3ec88a2019-01-24 16:10:11 -0800128 ip: 13.1.1.0/24
Matteo Scandolo36390782019-01-24 15:00:07 -0800129 description: node_1_ip_1
130 requirements:
131 - interface:
132 node: interface#port_1_interface
133 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800134
135 ip#port_1_ip_2:
136 type: tosca.nodes.FabricIpAddress
137 properties:
138 ip: 119.0.0.254/24
139 description: node_1_ip_2
140 requirements:
141 - interface:
142 node: interface#port_1_interface
143 relationship: tosca.relationships.BelongsToOne
144
145 # Node2 Port
146 port#node_2_port:
147 type: tosca.nodes.SwitchPort
148 properties:
Matteo Scandolob4672162019-01-24 15:49:13 -0800149 portId: 35
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800150 requirements:
151 - switch:
152 node: switch#leaf_1
153 relationship: tosca.relationships.BelongsToOne
154
155 interface#port_2_interface:
156 type: tosca.nodes.PortInterface
157 properties:
158 vlanUntagged: 20
159 name: node_2
160 requirements:
161 - port:
162 node: port#node_2_port
163 relationship: tosca.relationships.BelongsToOne
164
165 ip#port_2_ip_1:
166 type: tosca.nodes.FabricIpAddress
167 properties:
Matteo Scandoloa3ec88a2019-01-24 16:10:11 -0800168 ip: 13.1.1.0/24
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800169 description: node_2_ip_1
170 requirements:
171 - interface:
172 node: interface#port_2_interface
173 relationship: tosca.relationships.BelongsToOne
174
175 ip#port_2_ip_2:
176 type: tosca.nodes.FabricIpAddress
177 properties:
178 ip: 119.0.0.254/24
179 description: node_2_ip_2
180 requirements:
181 - interface:
182 node: interface#port_2_interface
183 relationship: tosca.relationships.BelongsToOne
184
185 # Node3 Port
186 port#node_3_port:
187 type: tosca.nodes.SwitchPort
188 properties:
Matteo Scandolob4672162019-01-24 15:49:13 -0800189 portId: 36
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800190 requirements:
191 - switch:
192 node: switch#leaf_1
193 relationship: tosca.relationships.BelongsToOne
194
195 interface#port_3_interface:
196 type: tosca.nodes.PortInterface
197 properties:
198 vlanUntagged: 20
199 name: node_3
200 requirements:
201 - port:
202 node: port#node_3_port
203 relationship: tosca.relationships.BelongsToOne
204
205 ip#port_3_ip_1:
206 type: tosca.nodes.FabricIpAddress
207 properties:
Matteo Scandoloa3ec88a2019-01-24 16:10:11 -0800208 ip: 13.1.1.0/24
Matteo Scandolo2a960fa2019-01-24 15:08:46 -0800209 description: node_3_ip_1
210 requirements:
211 - interface:
212 node: interface#port_3_interface
213 relationship: tosca.relationships.BelongsToOne
214
215 ip#port_3_ip_2:
216 type: tosca.nodes.FabricIpAddress
217 properties:
218 ip: 119.0.0.254/24
219 description: node_3_ip_2
220 requirements:
221 - interface:
222 node: interface#port_3_interface
223 relationship: tosca.relationships.BelongsToOne