Wei-Yu Chen | aff3d2b | 2019-04-17 10:50:10 -0700 | [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 @mcord-barcelona-fabric.yaml http://192.168.69.1: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 |
Wei-Yu Chen | aff3d2b | 2019-04-17 10:50:10 -0700 | [diff] [blame] | 24 | - custom_types/node.yaml |
| 25 | - custom_types/vrouterservice.yaml |
| 26 | - custom_types/vrouterserviceinstance.yaml |
| 27 | |
| 28 | description: Configures the ONF SEBA POD with AT&T workflow |
| 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 | |
Wei-Yu Chen | aff3d2b | 2019-04-17 10:50:10 -0700 | [diff] [blame] | 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 |
Wei-Yu Chen | aff3d2b | 2019-04-17 10:50:10 -0700 | [diff] [blame] | 50 | |
| 51 | node#node2: |
| 52 | type: tosca.nodes.Node |
| 53 | properties: |
| 54 | dataPlaneIntf: eth2 |
| 55 | dataPlaneIp: 118.0.0.202 |
| 56 | name: node2 |
Wei-Yu Chen | aff3d2b | 2019-04-17 10:50:10 -0700 | [diff] [blame] | 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 |