blob: 297f52c9faedbb0bc97a7db8924870d048a86ce1 [file] [log] [blame]
Joey Armstrong003e83e2023-01-09 20:23:48 -05001# Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Woojoong Kim3764ff32019-07-31 14:31:10 -07002#
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 @mcord-barcelona-fabric.yaml http://192.168.69.1: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 - custom_types/site.yaml
24 - custom_types/node.yaml
25 - custom_types/vrouterservice.yaml
26 - custom_types/vrouterserviceinstance.yaml
27
28description: Configures the ONF SEBA POD with AT&T workflow
29
30topology_template:
31 node_templates:
32
33 # Site deployment
34 mySite:
35 type: tosca.nodes.Site
36 properties:
37 name: mysite
38 login_base: opencord
39 abbreviated_name: ms
40 site_url: http://opencord.org/
41 hosts_nodes: true
42
43 # compute nodes
44 node#node1:
45 type: tosca.nodes.Node
46 properties:
47 dataPlaneIntf: eth2
48 dataPlaneIp: 118.0.0.201
49 name: node1
50
51 node#node2:
52 type: tosca.nodes.Node
53 properties:
54 dataPlaneIntf: eth2
55 dataPlaneIp: 118.0.0.202
56 name: node2
57
58 # static routes
59 service#vrouter:
60 type: tosca.nodes.VRouterService
61 properties:
62 name: vrouter
63 must-exist: true
64
65 vroutersi#calico:
66 type: tosca.nodes.VRouterServiceInstance
67 properties:
68 name: calico
69 requirements:
70 - owner:
71 node: service#vrouter
72 relationship: tosca.relationships.BelongsToOne
73
74 # Fabric configuration
75 switch#leaf_1:
76 type: tosca.nodes.Switch
77 properties:
78 driver: ofdpa3
79 ipv4Loopback: 192.168.0.204
80 ipv4NodeSid: 214
81 isEdgeRouter: true
82 name: Agg Switch
83 ofId: of:0000000000000001
84 routerMac: 54:87:de:ad:be:ef
85
86 # Node1 Port
87 port#node_1_port:
88 type: tosca.nodes.SwitchPort
89 properties:
90 portId: 34
91 requirements:
92 - switch:
93 node: switch#leaf_1
94 relationship: tosca.relationships.BelongsToOne
95
96 interface#port_1_interface:
97 type: tosca.nodes.PortInterface
98 properties:
99 vlanUntagged: 20
100 name: node_1
101 requirements:
102 - port:
103 node: port#node_1_port
104 relationship: tosca.relationships.BelongsToOne
105
106 ip#port_1_sgi_net:
107 type: tosca.nodes.FabricIpAddress
108 properties:
109 ip: 13.1.1.254/24
110 description: node_1_sgi_net
111 requirements:
112 - interface:
113 node: interface#port_1_interface
114 relationship: tosca.relationships.BelongsToOne
115
116 ip#port_1_s1u_net:
117 type: tosca.nodes.FabricIpAddress
118 properties:
119 ip: 119.0.0.254/24
120 description: node_1_s1u_net
121 requirements:
122 - interface:
123 node: interface#port_1_interface
124 relationship: tosca.relationships.BelongsToOne
125
126 ip#port_1_f1_net:
127 type: tosca.nodes.FabricIpAddress
128 properties:
129 ip: 116.0.0.254/24
130 description: node_1_f1_net
131 requirements:
132 - interface:
133 node: interface#port_1_interface
134 relationship: tosca.relationships.BelongsToOne
135
136 # Node2 Port
137 port#node_2_port:
138 type: tosca.nodes.SwitchPort
139 properties:
140 portId: 35
141 requirements:
142 - switch:
143 node: switch#leaf_1
144 relationship: tosca.relationships.BelongsToOne
145
146 interface#port_2_interface:
147 type: tosca.nodes.PortInterface
148 properties:
149 vlanUntagged: 20
150 name: node_2
151 requirements:
152 - port:
153 node: port#node_2_port
154 relationship: tosca.relationships.BelongsToOne
155
156 ip#port_2_sgi_net:
157 type: tosca.nodes.FabricIpAddress
158 properties:
159 ip: 13.1.1.254/24
160 description: node_2_sgi_net
161 requirements:
162 - interface:
163 node: interface#port_2_interface
164 relationship: tosca.relationships.BelongsToOne
165
166 ip#port_2_s1u_net:
167 type: tosca.nodes.FabricIpAddress
168 properties:
169 ip: 119.0.0.254/24
170 description: node_2_s1u_net
171 requirements:
172 - interface:
173 node: interface#port_2_interface
174 relationship: tosca.relationships.BelongsToOne
175
176 ip#port_2_f1_net:
177 type: tosca.nodes.FabricIpAddress
178 properties:
179 ip: 116.0.0.254/24
180 description: node_2_f1_net
181 requirements:
182 - interface:
183 node: interface#port_2_interface
184 relationship: tosca.relationships.BelongsToOne
185
186 # Upstream Router Port
187 port#node_ext_port:
188 type: tosca.nodes.SwitchPort
189 properties:
190 portId: 40
191 requirements:
192 - switch:
193 node: switch#leaf_1
194 relationship: tosca.relationships.BelongsToOne
195
196 interface#port_ext_interface:
197 type: tosca.nodes.PortInterface
198 properties:
199 vlanUntagged: 20
200 name: ext
201 requirements:
202 - port:
203 node: port#node_ext_port
204 relationship: tosca.relationships.BelongsToOne
205
206 ip#port_ext_upstream:
207 type: tosca.nodes.FabricIpAddress
208 properties:
209 ip: 11.0.0.254/24
210 description: node_ext_upstream
211 requirements:
212 - interface:
213 node: interface#port_ext_interface
214 relationship: tosca.relationships.BelongsToOne
215
216 ip#port_ext_sgi_net:
217 type: tosca.nodes.FabricIpAddress
218 properties:
219 ip: 13.1.1.254/24
220 description: port_ext_sgi_net
221 requirements:
222 - interface:
223 node: interface#port_ext_interface
224 relationship: tosca.relationships.BelongsToOne
225
226 ip#port_ext_s1u_net:
227 type: tosca.nodes.FabricIpAddress
228 properties:
229 ip: 119.0.0.254/24
230 description: port_ext_s1u_net
231 requirements:
232 - interface:
233 node: interface#port_ext_interface
234 relationship: tosca.relationships.BelongsToOne
235
236 ip#port_ext_f1_net:
237 type: tosca.nodes.FabricIpAddress
238 properties:
239 ip: 116.0.0.254/24
240 description: port_ext_f1_net
241 requirements:
242 - interface:
243 node: interface#port_ext_interface
244 relationship: tosca.relationships.BelongsToOne