blob: ab34c429235bd11c3e6eb496c540b88e9f6df059 [file] [log] [blame]
Matteo Scandolo36390782019-01-24 15:00:07 -08001# 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
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
24description: Configures the ONF SEBA POD with AT&T workflow
25
26topology_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
50 # Node 1 Port interface
51 interface#port_1_interface:
52 type: tosca.nodes.PortInterface
53 properties:
54 vlanUntagged: 20
55 # ips: 118.0.0.254/24, 119.0.0.254/24
56 name: node_1
57 requirements:
58 - port:
59 node: port#node_1_port
60 relationship: tosca.relationships.BelongsToOne
61
62 # Node 1 Port interface IPS
63 ip#port_1_ip_1:
64 type: tosca.nodes.FabricIpAddress
65 properties:
66 ip: 118.0.0.254/24
67 description: node_1_ip_1
68 requirements:
69 - interface:
70 node: interface#port_1_interface
71 relationship: tosca.relationships.BelongsToOne