Hyunsun Moon | a1490f7 | 2019-10-10 14:27:58 -0700 | [diff] [blame] | 1 | # 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 | |
| 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | imports: |
| 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 | |
| 28 | description: Configures the ONF COMAC POD with Cavium |
| 29 | |
| 30 | topology_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 | |
Hyunsun Moon | 848f7db | 2019-12-08 17:50:36 -0800 | [diff] [blame] | 86 | # staging-edge-a |
Hyunsun Moon | a1490f7 | 2019-10-10 14:27:58 -0700 | [diff] [blame] | 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 | |
Hyunsun Moon | 848f7db | 2019-12-08 17:50:36 -0800 | [diff] [blame] | 136 | # staging-edge-b |
Hyunsun Moon | a1490f7 | 2019-10-10 14:27:58 -0700 | [diff] [blame] | 137 | port#node_2_port: |
| 138 | type: tosca.nodes.SwitchPort |
| 139 | properties: |
Hyunsun Moon | 848f7db | 2019-12-08 17:50:36 -0800 | [diff] [blame] | 140 | portId: 40 |
Hyunsun Moon | a1490f7 | 2019-10-10 14:27:58 -0700 | [diff] [blame] | 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 | |
Hyunsun Moon | 848f7db | 2019-12-08 17:50:36 -0800 | [diff] [blame] | 186 | # staging-edge-c |
| 187 | port#node_3_port: |
| 188 | type: tosca.nodes.SwitchPort |
| 189 | properties: |
| 190 | portId: 38 |
| 191 | requirements: |
| 192 | - switch: |
| 193 | node: switch#leaf_1 |
| 194 | relationship: tosca.relationships.BelongsToOne |
| 195 | |
| 196 | interface#port_3_interface: |
| 197 | type: tosca.nodes.PortInterface |
| 198 | properties: |
| 199 | vlanUntagged: 20 |
| 200 | name: node_3 |
| 201 | requirements: |
| 202 | - port: |
| 203 | node: port#node_3_port |
| 204 | relationship: tosca.relationships.BelongsToOne |
| 205 | |
| 206 | ip#port_3_sgi_net: |
| 207 | type: tosca.nodes.FabricIpAddress |
| 208 | properties: |
| 209 | ip: 13.1.1.254/24 |
| 210 | description: node_3_sgi_net |
| 211 | requirements: |
| 212 | - interface: |
| 213 | node: interface#port_3_interface |
| 214 | relationship: tosca.relationships.BelongsToOne |
| 215 | |
| 216 | ip#port_3_s1u_net: |
| 217 | type: tosca.nodes.FabricIpAddress |
| 218 | properties: |
| 219 | ip: 119.0.0.254/24 |
| 220 | description: node_3_s1u_net |
| 221 | requirements: |
| 222 | - interface: |
| 223 | node: interface#port_3_interface |
| 224 | relationship: tosca.relationships.BelongsToOne |
| 225 | |
| 226 | # product-edge-1 |
| 227 | port#node_4_port: |
| 228 | type: tosca.nodes.SwitchPort |
| 229 | properties: |
| 230 | portId: 34 |
| 231 | requirements: |
| 232 | - switch: |
| 233 | node: switch#leaf_1 |
| 234 | relationship: tosca.relationships.BelongsToOne |
| 235 | |
| 236 | interface#port_4_interface: |
| 237 | type: tosca.nodes.PortInterface |
| 238 | properties: |
| 239 | vlanUntagged: 20 |
| 240 | name: node_4 |
| 241 | requirements: |
| 242 | - port: |
| 243 | node: port#node_4_port |
| 244 | relationship: tosca.relationships.BelongsToOne |
| 245 | |
| 246 | ip#port_4_sgi_net: |
| 247 | type: tosca.nodes.FabricIpAddress |
| 248 | properties: |
| 249 | ip: 13.1.1.254/24 |
| 250 | description: node_4_sgi_net |
| 251 | requirements: |
| 252 | - interface: |
| 253 | node: interface#port_4_interface |
| 254 | relationship: tosca.relationships.BelongsToOne |
| 255 | |
| 256 | ip#port_4_s1u_net: |
| 257 | type: tosca.nodes.FabricIpAddress |
| 258 | properties: |
| 259 | ip: 119.0.0.254/24 |
| 260 | description: node_4_s1u_net |
| 261 | requirements: |
| 262 | - interface: |
| 263 | node: interface#port_4_interface |
| 264 | relationship: tosca.relationships.BelongsToOne |
| 265 | |
| 266 | # product-edge-2 |
| 267 | port#node_5_port: |
| 268 | type: tosca.nodes.SwitchPort |
| 269 | properties: |
| 270 | portId: 39 |
| 271 | requirements: |
| 272 | - switch: |
| 273 | node: switch#leaf_1 |
| 274 | relationship: tosca.relationships.BelongsToOne |
| 275 | |
| 276 | interface#port_5_interface: |
| 277 | type: tosca.nodes.PortInterface |
| 278 | properties: |
| 279 | vlanUntagged: 20 |
| 280 | name: node_5 |
| 281 | requirements: |
| 282 | - port: |
| 283 | node: port#node_5_port |
| 284 | relationship: tosca.relationships.BelongsToOne |
| 285 | |
| 286 | ip#port_5_sgi_net: |
| 287 | type: tosca.nodes.FabricIpAddress |
| 288 | properties: |
| 289 | ip: 13.1.1.254/24 |
| 290 | description: node_5_sgi_net |
| 291 | requirements: |
| 292 | - interface: |
| 293 | node: interface#port_5_interface |
| 294 | relationship: tosca.relationships.BelongsToOne |
| 295 | |
| 296 | ip#port_5_s1u_net: |
| 297 | type: tosca.nodes.FabricIpAddress |
| 298 | properties: |
| 299 | ip: 119.0.0.254/24 |
| 300 | description: node_5_s1u_net |
| 301 | requirements: |
| 302 | - interface: |
| 303 | node: interface#port_5_interface |
| 304 | relationship: tosca.relationships.BelongsToOne |
| 305 | |
| 306 | # QA machine |
| 307 | port#node_6_port: |
| 308 | type: tosca.nodes.SwitchPort |
| 309 | properties: |
| 310 | portId: 36 |
| 311 | requirements: |
| 312 | - switch: |
| 313 | node: switch#leaf_1 |
| 314 | relationship: tosca.relationships.BelongsToOne |
| 315 | |
| 316 | interface#port_6_interface: |
| 317 | type: tosca.nodes.PortInterface |
| 318 | properties: |
| 319 | vlanUntagged: 20 |
| 320 | name: node_6 |
| 321 | requirements: |
| 322 | - port: |
| 323 | node: port#node_6_port |
| 324 | relationship: tosca.relationships.BelongsToOne |
| 325 | |
| 326 | ip#port_6_sgi_net: |
| 327 | type: tosca.nodes.FabricIpAddress |
| 328 | properties: |
| 329 | ip: 13.1.1.254/24 |
| 330 | description: node_6_sgi_net |
| 331 | requirements: |
| 332 | - interface: |
| 333 | node: interface#port_6_interface |
| 334 | relationship: tosca.relationships.BelongsToOne |
| 335 | |
| 336 | ip#port_6_s1u_net: |
| 337 | type: tosca.nodes.FabricIpAddress |
| 338 | properties: |
| 339 | ip: 119.0.0.254/24 |
| 340 | description: node_6_s1u_net |
| 341 | requirements: |
| 342 | - interface: |
| 343 | node: interface#port_6_interface |
| 344 | relationship: tosca.relationships.BelongsToOne |
| 345 | |
Hyunsun Moon | a1490f7 | 2019-10-10 14:27:58 -0700 | [diff] [blame] | 346 | # RRU Port |
| 347 | port#rru_port: |
| 348 | type: tosca.nodes.SwitchPort |
| 349 | properties: |
| 350 | portId: 37 |
| 351 | requirements: |
| 352 | - switch: |
| 353 | node: switch#leaf_1 |
| 354 | relationship: tosca.relationships.BelongsToOne |
| 355 | |
| 356 | interface#rru_interface: |
| 357 | type: tosca.nodes.PortInterface |
| 358 | properties: |
| 359 | vlanUntagged: 20 |
| 360 | name: rru |
| 361 | requirements: |
| 362 | - port: |
| 363 | node: port#rru_port |
| 364 | relationship: tosca.relationships.BelongsToOne |
| 365 | |
| 366 | ip#port_rru_sgi_net: |
| 367 | type: tosca.nodes.FabricIpAddress |
| 368 | properties: |
| 369 | ip: 13.1.1.254/24 |
| 370 | description: rru_sgi_net |
| 371 | requirements: |
| 372 | - interface: |
| 373 | node: interface#rru_interface |
| 374 | relationship: tosca.relationships.BelongsToOne |
| 375 | |
| 376 | ip#port_rru_s1u_net: |
| 377 | type: tosca.nodes.FabricIpAddress |
| 378 | properties: |
| 379 | ip: 119.0.0.254/24 |
| 380 | description: rru_s1u_net |
| 381 | requirements: |
| 382 | - interface: |
| 383 | node: interface#rru_interface |
| 384 | relationship: tosca.relationships.BelongsToOne |
| 385 | |
| 386 | ip#port_rru_net: |
| 387 | type: tosca.nodes.FabricIpAddress |
| 388 | properties: |
| 389 | ip: 116.0.0.254/24 |
| 390 | description: rru_net |
| 391 | requirements: |
| 392 | - interface: |
| 393 | node: interface#rru_interface |
| 394 | relationship: tosca.relationships.BelongsToOne |
Woojoong Kim | 90dd239 | 2019-10-21 17:21:27 -0700 | [diff] [blame] | 395 | |
| 396 | # Management node Port |
| 397 | port#man_node_port: |
| 398 | type: tosca.nodes.SwitchPort |
| 399 | properties: |
| 400 | portId: 35 |
| 401 | requirements: |
| 402 | - switch: |
| 403 | node: switch#leaf_1 |
| 404 | relationship: tosca.relationships.BelongsToOne |
| 405 | |
| 406 | interface#man_node_interface: |
| 407 | type: tosca.nodes.PortInterface |
| 408 | properties: |
| 409 | vlanUntagged: 20 |
| 410 | name: man_node |
| 411 | requirements: |
| 412 | - port: |
| 413 | node: port#man_node_port |
| 414 | relationship: tosca.relationships.BelongsToOne |
| 415 | |
| 416 | ip#port_man_node_sgi_net: |
| 417 | type: tosca.nodes.FabricIpAddress |
| 418 | properties: |
| 419 | ip: 13.1.1.254/24 |
| 420 | description: man_node_sgi_net |
| 421 | requirements: |
| 422 | - interface: |
| 423 | node: interface#man_node_interface |
| 424 | relationship: tosca.relationships.BelongsToOne |
| 425 | |
| 426 | ip#port_man_node_s1u_net: |
| 427 | type: tosca.nodes.FabricIpAddress |
| 428 | properties: |
| 429 | ip: 119.0.0.254/24 |
| 430 | description: man_node_s1u_net |
| 431 | requirements: |
| 432 | - interface: |
| 433 | node: interface#man_node_interface |
| 434 | relationship: tosca.relationships.BelongsToOne |