blob: 465b89d77cd5a29d4990fb2588cd9dd038a9467e [file] [log] [blame]
Joey Armstrong003e83e2023-01-09 20:23:48 -05001# Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Woojoong Kim81978ec2019-07-24 11:46:36 -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 # Node2 Port
127 port#node_2_port:
128 type: tosca.nodes.SwitchPort
129 properties:
130 portId: 35
131 requirements:
132 - switch:
133 node: switch#leaf_1
134 relationship: tosca.relationships.BelongsToOne
135
136 interface#port_2_interface:
137 type: tosca.nodes.PortInterface
138 properties:
139 vlanUntagged: 20
140 name: node_2
141 requirements:
142 - port:
143 node: port#node_2_port
144 relationship: tosca.relationships.BelongsToOne
145
146 ip#port_2_sgi_net:
147 type: tosca.nodes.FabricIpAddress
148 properties:
149 ip: 13.1.1.254/24
150 description: node_2_sgi_net
151 requirements:
152 - interface:
153 node: interface#port_2_interface
154 relationship: tosca.relationships.BelongsToOne
155
156 ip#port_2_s1u_net:
157 type: tosca.nodes.FabricIpAddress
158 properties:
159 ip: 119.0.0.254/24
160 description: node_2_s1u_net
161 requirements:
162 - interface:
163 node: interface#port_2_interface
164 relationship: tosca.relationships.BelongsToOne
165
166 # Upstream Router Port
167 port#node_ext_port:
168 type: tosca.nodes.SwitchPort
169 properties:
170 portId: 40
171 requirements:
172 - switch:
173 node: switch#leaf_1
174 relationship: tosca.relationships.BelongsToOne
175
176 interface#port_ext_interface:
177 type: tosca.nodes.PortInterface
178 properties:
179 vlanUntagged: 20
180 name: ext
181 requirements:
182 - port:
183 node: port#node_ext_port
184 relationship: tosca.relationships.BelongsToOne
185
186 ip#port_ext_upstream:
187 type: tosca.nodes.FabricIpAddress
188 properties:
189 ip: 11.0.0.254/24
190 description: node_ext_upstream
191 requirements:
192 - interface:
193 node: interface#port_ext_interface
194 relationship: tosca.relationships.BelongsToOne
195
196 ip#port_ext_sgi_net:
197 type: tosca.nodes.FabricIpAddress
198 properties:
199 ip: 13.1.1.254/24
200 description: port_ext_sgi_net
201 requirements:
202 - interface:
203 node: interface#port_ext_interface
204 relationship: tosca.relationships.BelongsToOne
205
206 ip#port_ext_s1u_net:
207 type: tosca.nodes.FabricIpAddress
208 properties:
209 ip: 119.0.0.254/24
210 description: port_ext_s1u_net
211 requirements:
212 - interface:
213 node: interface#port_ext_interface
214 relationship: tosca.relationships.BelongsToOne