Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 1 | # 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 | |
| 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 |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 23 | - custom_types/site.yaml |
| 24 | - custom_types/deployment.yaml |
| 25 | - custom_types/sitedeployment.yaml |
| 26 | - custom_types/node.yaml |
| 27 | - custom_types/vrouterservice.yaml |
| 28 | - custom_types/vrouterserviceinstance.yaml |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 29 | |
| 30 | description: Configures the ONF SEBA POD with AT&T workflow |
| 31 | |
| 32 | topology_template: |
| 33 | node_templates: |
Matteo Scandolo | 4c4cafc | 2019-01-29 17:17:39 -0800 | [diff] [blame] | 34 | |
| 35 | # Site deployment |
| 36 | mySite: |
| 37 | type: tosca.nodes.Site |
| 38 | properties: |
| 39 | name: mysite |
| 40 | login_base: opencord |
| 41 | abbreviated_name: ms |
| 42 | site_url: http://opencord.org/ |
| 43 | hosts_nodes: true |
| 44 | |
| 45 | myDeployment: |
| 46 | type: tosca.nodes.Deployment |
| 47 | properties: |
| 48 | name: mydeployment |
| 49 | |
| 50 | site_deployment: |
| 51 | type: tosca.nodes.SiteDeployment |
| 52 | requirements: |
| 53 | - site: |
| 54 | node: mySite |
| 55 | relationship: tosca.relationships.BelongsToOne |
| 56 | - deployment: |
| 57 | node: myDeployment |
| 58 | relationship: tosca.relationships.BelongsToOne |
| 59 | |
| 60 | # compute nodes |
| 61 | node#node1: |
| 62 | type: tosca.nodes.Node |
| 63 | properties: |
| 64 | dataPlaneIntf: eth2 |
| 65 | dataPlaneIp: 118.0.0.201 |
| 66 | name: node1 |
| 67 | requirements: |
| 68 | - site_deployment: |
| 69 | node: site_deployment |
| 70 | relationship: tosca.relationships.BelongsToOne |
| 71 | |
| 72 | node#node2: |
| 73 | type: tosca.nodes.Node |
| 74 | properties: |
| 75 | dataPlaneIntf: eth2 |
| 76 | dataPlaneIp: 118.0.0.202 |
| 77 | name: node2 |
| 78 | requirements: |
| 79 | - site_deployment: |
| 80 | node: site_deployment |
| 81 | relationship: tosca.relationships.BelongsToOne |
| 82 | |
| 83 | node#node3: |
| 84 | type: tosca.nodes.Node |
| 85 | properties: |
| 86 | dataPlaneIntf: eth2 |
| 87 | dataPlaneIp: 118.0.0.203 |
| 88 | name: node3 |
| 89 | requirements: |
| 90 | - site_deployment: |
| 91 | node: site_deployment |
| 92 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | cc82789 | 2019-02-14 16:49:43 -0800 | [diff] [blame] | 93 | service#vrouter: |
| 94 | type: tosca.nodes.VRouterService |
| 95 | properties: |
| 96 | name: vrouter |
| 97 | must-exist: true |
Matteo Scandolo | 4c4cafc | 2019-01-29 17:17:39 -0800 | [diff] [blame] | 98 | |
| 99 | vroutersi#calico: |
| 100 | type: tosca.nodes.VRouterServiceInstance |
| 101 | properties: |
| 102 | name: calico |
Matteo Scandolo | cc82789 | 2019-02-14 16:49:43 -0800 | [diff] [blame] | 103 | requirements: |
| 104 | - owner: |
| 105 | node: service#vrouter |
| 106 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 4c4cafc | 2019-01-29 17:17:39 -0800 | [diff] [blame] | 107 | |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 108 | # Fabric configuration |
| 109 | switch#leaf_1: |
| 110 | type: tosca.nodes.Switch |
| 111 | properties: |
| 112 | driver: ofdpa3 |
| 113 | ipv4Loopback: 192.168.0.204 |
| 114 | ipv4NodeSid: 214 |
| 115 | isEdgeRouter: true |
Matteo Scandolo | 01971dc | 2019-02-15 09:00:17 -0800 | [diff] [blame] | 116 | name: AGG_SWITCH |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 117 | ofId: of:0000000000000001 |
| 118 | routerMac: 54:87:de:ad:be:ef |
| 119 | |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 120 | # eNodeB - rru Port |
| 121 | port#rru_port: |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 122 | type: tosca.nodes.SwitchPort |
| 123 | properties: |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 124 | portId: 33 |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 125 | requirements: |
| 126 | - switch: |
| 127 | node: switch#leaf_1 |
| 128 | relationship: tosca.relationships.BelongsToOne |
| 129 | |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 130 | interface#port_1_interface: |
| 131 | type: tosca.nodes.PortInterface |
| 132 | properties: |
| 133 | vlanUntagged: 20 |
Pingping Lin | b75cd47 | 2019-02-18 16:37:02 -0800 | [diff] [blame] | 134 | name: rru |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 135 | requirements: |
| 136 | - port: |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 137 | node: port#rru_port |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 138 | relationship: tosca.relationships.BelongsToOne |
| 139 | |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 140 | ip#port_1_ip_1: |
| 141 | type: tosca.nodes.FabricIpAddress |
| 142 | properties: |
Matteo Scandolo | a3ec88a | 2019-01-24 16:10:11 -0800 | [diff] [blame] | 143 | ip: 13.1.1.0/24 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 144 | description: rru_ip_1 |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 145 | requirements: |
| 146 | - interface: |
| 147 | node: interface#port_1_interface |
| 148 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 149 | |
| 150 | ip#port_1_ip_2: |
| 151 | type: tosca.nodes.FabricIpAddress |
| 152 | properties: |
| 153 | ip: 119.0.0.254/24 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 154 | description: rru_ip_2 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 155 | requirements: |
| 156 | - interface: |
| 157 | node: interface#port_1_interface |
| 158 | relationship: tosca.relationships.BelongsToOne |
| 159 | |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 160 | ip#port_1_ip_3: |
| 161 | type: tosca.nodes.FabricIpAddress |
| 162 | properties: |
| 163 | ip: 116.0.0.254/24 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 164 | description: rru_ip_3 |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 165 | requirements: |
| 166 | - interface: |
| 167 | node: interface#port_1_interface |
| 168 | relationship: tosca.relationships.BelongsToOne |
| 169 | |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 170 | # Node1 Port |
| 171 | port#node_1_port: |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 172 | type: tosca.nodes.SwitchPort |
| 173 | properties: |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 174 | portId: 34 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 175 | requirements: |
| 176 | - switch: |
| 177 | node: switch#leaf_1 |
| 178 | relationship: tosca.relationships.BelongsToOne |
| 179 | |
| 180 | interface#port_2_interface: |
| 181 | type: tosca.nodes.PortInterface |
| 182 | properties: |
| 183 | vlanUntagged: 20 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 184 | name: node_1 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 185 | requirements: |
| 186 | - port: |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 187 | node: port#node_1_port |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 188 | relationship: tosca.relationships.BelongsToOne |
| 189 | |
| 190 | ip#port_2_ip_1: |
| 191 | type: tosca.nodes.FabricIpAddress |
| 192 | properties: |
Matteo Scandolo | a3ec88a | 2019-01-24 16:10:11 -0800 | [diff] [blame] | 193 | ip: 13.1.1.0/24 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 194 | description: node_1_ip_1 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 195 | requirements: |
| 196 | - interface: |
| 197 | node: interface#port_2_interface |
| 198 | relationship: tosca.relationships.BelongsToOne |
| 199 | |
| 200 | ip#port_2_ip_2: |
| 201 | type: tosca.nodes.FabricIpAddress |
| 202 | properties: |
| 203 | ip: 119.0.0.254/24 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 204 | description: node_1_ip_2 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 205 | requirements: |
| 206 | - interface: |
| 207 | node: interface#port_2_interface |
| 208 | relationship: tosca.relationships.BelongsToOne |
| 209 | |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 210 | ip#port_2_ip_3: |
| 211 | type: tosca.nodes.FabricIpAddress |
| 212 | properties: |
| 213 | ip: 116.0.0.254/24 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 214 | description: node_1_ip_3 |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 215 | requirements: |
| 216 | - interface: |
| 217 | node: interface#port_2_interface |
| 218 | relationship: tosca.relationships.BelongsToOne |
| 219 | |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 220 | # Node2 Port |
| 221 | port#node_2_port: |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 222 | type: tosca.nodes.SwitchPort |
| 223 | properties: |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 224 | portId: 35 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 225 | requirements: |
| 226 | - switch: |
| 227 | node: switch#leaf_1 |
| 228 | relationship: tosca.relationships.BelongsToOne |
| 229 | |
| 230 | interface#port_3_interface: |
| 231 | type: tosca.nodes.PortInterface |
| 232 | properties: |
| 233 | vlanUntagged: 20 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 234 | name: node_2 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 235 | requirements: |
| 236 | - port: |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 237 | node: port#node_2_port |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 238 | relationship: tosca.relationships.BelongsToOne |
| 239 | |
| 240 | ip#port_3_ip_1: |
| 241 | type: tosca.nodes.FabricIpAddress |
| 242 | properties: |
Matteo Scandolo | a3ec88a | 2019-01-24 16:10:11 -0800 | [diff] [blame] | 243 | ip: 13.1.1.0/24 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 244 | description: node_2_ip_1 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 245 | requirements: |
| 246 | - interface: |
| 247 | node: interface#port_3_interface |
| 248 | relationship: tosca.relationships.BelongsToOne |
| 249 | |
| 250 | ip#port_3_ip_2: |
| 251 | type: tosca.nodes.FabricIpAddress |
| 252 | properties: |
| 253 | ip: 119.0.0.254/24 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 254 | description: node_2_ip_2 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 255 | requirements: |
| 256 | - interface: |
| 257 | node: interface#port_3_interface |
| 258 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 259 | |
| 260 | ip#port_3_ip_3: |
| 261 | type: tosca.nodes.FabricIpAddress |
| 262 | properties: |
| 263 | ip: 116.0.0.254/24 |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 264 | description: node_2_ip_3 |
Matteo Scandolo | d0e5ab0 | 2019-02-04 09:07:41 -0800 | [diff] [blame] | 265 | requirements: |
| 266 | - interface: |
| 267 | node: interface#port_3_interface |
| 268 | relationship: tosca.relationships.BelongsToOne |
Wei-Yu Chen | e8ab25c | 2019-02-16 15:07:33 -0800 | [diff] [blame] | 269 | |
| 270 | # Node3 Port |
| 271 | port#node_3_port: |
| 272 | type: tosca.nodes.SwitchPort |
| 273 | properties: |
| 274 | portId: 36 |
| 275 | requirements: |
| 276 | - switch: |
| 277 | node: switch#leaf_1 |
| 278 | relationship: tosca.relationships.BelongsToOne |
| 279 | |
| 280 | interface#port_4_interface: |
| 281 | type: tosca.nodes.PortInterface |
| 282 | properties: |
| 283 | vlanUntagged: 20 |
| 284 | name: node_3 |
| 285 | requirements: |
| 286 | - port: |
| 287 | node: port#node_3_port |
| 288 | relationship: tosca.relationships.BelongsToOne |
| 289 | |
| 290 | ip#port_4_ip_1: |
| 291 | type: tosca.nodes.FabricIpAddress |
| 292 | properties: |
| 293 | ip: 13.1.1.0/24 |
| 294 | description: node_3_ip_1 |
| 295 | requirements: |
| 296 | - interface: |
| 297 | node: interface#port_4_interface |
| 298 | relationship: tosca.relationships.BelongsToOne |
| 299 | |
| 300 | ip#port_4_ip_2: |
| 301 | type: tosca.nodes.FabricIpAddress |
| 302 | properties: |
| 303 | ip: 119.0.0.254/24 |
| 304 | description: node_3_ip_2 |
| 305 | requirements: |
| 306 | - interface: |
| 307 | node: interface#port_4_interface |
| 308 | relationship: tosca.relationships.BelongsToOne |
| 309 | |
| 310 | ip#port_4_ip_3: |
| 311 | type: tosca.nodes.FabricIpAddress |
| 312 | properties: |
| 313 | ip: 116.0.0.254/24 |
| 314 | description: node_3_ip_2 |
| 315 | requirements: |
| 316 | - interface: |
| 317 | node: interface#port_4_interface |
| 318 | relationship: tosca.relationships.BelongsToOne |