blob: 064be27063a6f0d97600a7ebad1be2f6a6a2691e [file] [log] [blame]
Hyunsun Moona1490f72019-10-10 14:27:58 -07001# Copyright 2019-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 @edge-fabric-accelleran.yaml http://central1: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 COMAC POD with Cavium
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: 119.0.0.131
49 name: node1
50
51 node#node2:
52 type: tosca.nodes.Node
53 properties:
54 dataPlaneIntf: eth2
55 dataPlaneIp: 119.0.0.132
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: 33
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_rru_net:
127 type: tosca.nodes.FabricIpAddress
128 properties:
129 ip: 116.0.0.254/24
130 description: node_1_rru_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: 34
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_rru_net:
177 type: tosca.nodes.FabricIpAddress
178 properties:
179 ip: 116.0.0.254/24
180 description: node_2_rru_net
181 requirements:
182 - interface:
183 node: interface#port_2_interface
184 relationship: tosca.relationships.BelongsToOne
185
186 # RRU Port
187 port#rru_port:
188 type: tosca.nodes.SwitchPort
189 properties:
190 portId: 37
191 requirements:
192 - switch:
193 node: switch#leaf_1
194 relationship: tosca.relationships.BelongsToOne
195
196 interface#rru_interface:
197 type: tosca.nodes.PortInterface
198 properties:
199 vlanUntagged: 20
200 name: rru
201 requirements:
202 - port:
203 node: port#rru_port
204 relationship: tosca.relationships.BelongsToOne
205
206 ip#port_rru_sgi_net:
207 type: tosca.nodes.FabricIpAddress
208 properties:
209 ip: 13.1.1.254/24
210 description: rru_sgi_net
211 requirements:
212 - interface:
213 node: interface#rru_interface
214 relationship: tosca.relationships.BelongsToOne
215
216 ip#port_rru_s1u_net:
217 type: tosca.nodes.FabricIpAddress
218 properties:
219 ip: 119.0.0.254/24
220 description: rru_s1u_net
221 requirements:
222 - interface:
223 node: interface#rru_interface
224 relationship: tosca.relationships.BelongsToOne
225
226 ip#port_rru_net:
227 type: tosca.nodes.FabricIpAddress
228 properties:
229 ip: 116.0.0.254/24
230 description: rru_net
231 requirements:
232 - interface:
233 node: interface#rru_interface
234 relationship: tosca.relationships.BelongsToOne