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 |
| 23 | |
| 24 | description: Configures the ONF SEBA POD with AT&T workflow |
| 25 | |
| 26 | topology_template: |
| 27 | node_templates: |
| 28 | # Fabric configuration |
| 29 | switch#leaf_1: |
| 30 | type: tosca.nodes.Switch |
| 31 | properties: |
| 32 | driver: ofdpa3 |
| 33 | ipv4Loopback: 192.168.0.204 |
| 34 | ipv4NodeSid: 214 |
| 35 | isEdgeRouter: true |
| 36 | name: Agg Switch |
| 37 | ofId: of:0000000000000001 |
| 38 | routerMac: 54:87:de:ad:be:ef |
| 39 | |
| 40 | # Node1 Port |
| 41 | port#node_1_port: |
| 42 | type: tosca.nodes.SwitchPort |
| 43 | properties: |
| 44 | portId: 34 |
| 45 | requirements: |
| 46 | - switch: |
| 47 | node: switch#leaf_1 |
| 48 | relationship: tosca.relationships.BelongsToOne |
| 49 | |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 50 | interface#port_1_interface: |
| 51 | type: tosca.nodes.PortInterface |
| 52 | properties: |
| 53 | vlanUntagged: 20 |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 54 | name: node_1 |
| 55 | requirements: |
| 56 | - port: |
| 57 | node: port#node_1_port |
| 58 | relationship: tosca.relationships.BelongsToOne |
| 59 | |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 60 | ip#port_1_ip_1: |
| 61 | type: tosca.nodes.FabricIpAddress |
| 62 | properties: |
Matteo Scandolo | a3ec88a | 2019-01-24 16:10:11 -0800 | [diff] [blame] | 63 | ip: 13.1.1.0/24 |
Matteo Scandolo | 3639078 | 2019-01-24 15:00:07 -0800 | [diff] [blame] | 64 | description: node_1_ip_1 |
| 65 | requirements: |
| 66 | - interface: |
| 67 | node: interface#port_1_interface |
| 68 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 69 | |
| 70 | ip#port_1_ip_2: |
| 71 | type: tosca.nodes.FabricIpAddress |
| 72 | properties: |
| 73 | ip: 119.0.0.254/24 |
| 74 | description: node_1_ip_2 |
| 75 | requirements: |
| 76 | - interface: |
| 77 | node: interface#port_1_interface |
| 78 | relationship: tosca.relationships.BelongsToOne |
| 79 | |
| 80 | # Node2 Port |
| 81 | port#node_2_port: |
| 82 | type: tosca.nodes.SwitchPort |
| 83 | properties: |
Matteo Scandolo | b467216 | 2019-01-24 15:49:13 -0800 | [diff] [blame] | 84 | portId: 35 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 85 | requirements: |
| 86 | - switch: |
| 87 | node: switch#leaf_1 |
| 88 | relationship: tosca.relationships.BelongsToOne |
| 89 | |
| 90 | interface#port_2_interface: |
| 91 | type: tosca.nodes.PortInterface |
| 92 | properties: |
| 93 | vlanUntagged: 20 |
| 94 | name: node_2 |
| 95 | requirements: |
| 96 | - port: |
| 97 | node: port#node_2_port |
| 98 | relationship: tosca.relationships.BelongsToOne |
| 99 | |
| 100 | ip#port_2_ip_1: |
| 101 | type: tosca.nodes.FabricIpAddress |
| 102 | properties: |
Matteo Scandolo | a3ec88a | 2019-01-24 16:10:11 -0800 | [diff] [blame] | 103 | ip: 13.1.1.0/24 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 104 | description: node_2_ip_1 |
| 105 | requirements: |
| 106 | - interface: |
| 107 | node: interface#port_2_interface |
| 108 | relationship: tosca.relationships.BelongsToOne |
| 109 | |
| 110 | ip#port_2_ip_2: |
| 111 | type: tosca.nodes.FabricIpAddress |
| 112 | properties: |
| 113 | ip: 119.0.0.254/24 |
| 114 | description: node_2_ip_2 |
| 115 | requirements: |
| 116 | - interface: |
| 117 | node: interface#port_2_interface |
| 118 | relationship: tosca.relationships.BelongsToOne |
| 119 | |
| 120 | # Node3 Port |
| 121 | port#node_3_port: |
| 122 | type: tosca.nodes.SwitchPort |
| 123 | properties: |
Matteo Scandolo | b467216 | 2019-01-24 15:49:13 -0800 | [diff] [blame] | 124 | portId: 36 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 125 | requirements: |
| 126 | - switch: |
| 127 | node: switch#leaf_1 |
| 128 | relationship: tosca.relationships.BelongsToOne |
| 129 | |
| 130 | interface#port_3_interface: |
| 131 | type: tosca.nodes.PortInterface |
| 132 | properties: |
| 133 | vlanUntagged: 20 |
| 134 | name: node_3 |
| 135 | requirements: |
| 136 | - port: |
| 137 | node: port#node_3_port |
| 138 | relationship: tosca.relationships.BelongsToOne |
| 139 | |
| 140 | ip#port_3_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 |
Matteo Scandolo | 2a960fa | 2019-01-24 15:08:46 -0800 | [diff] [blame] | 144 | description: node_3_ip_1 |
| 145 | requirements: |
| 146 | - interface: |
| 147 | node: interface#port_3_interface |
| 148 | relationship: tosca.relationships.BelongsToOne |
| 149 | |
| 150 | ip#port_3_ip_2: |
| 151 | type: tosca.nodes.FabricIpAddress |
| 152 | properties: |
| 153 | ip: 119.0.0.254/24 |
| 154 | description: node_3_ip_2 |
| 155 | requirements: |
| 156 | - interface: |
| 157 | node: interface#port_3_interface |
| 158 | relationship: tosca.relationships.BelongsToOne |