blob: 76f16a9200e7f617caf9ecc32826892a598b83c1 [file] [log] [blame]
Matteo Scandolo1760e9b2018-10-08 10:17:51 -07001# 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
Matteo Scandolo9d21ae72018-10-09 20:09:29 -070015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod2-fabric.yaml http://10.90.0.120:30007/run
Matteo Scandolo1760e9b2018-10-08 10:17:51 -070016
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/bngportmapping.yaml
23 - custom_types/attworkflowdriverwhitelistentry.yaml
24 - custom_types/attworkflowdriverservice.yaml
Matteo Scandolo63813df2018-10-12 10:45:13 -070025 - custom_types/serviceinstanceattribute.yaml
Matteo Scandolo1760e9b2018-10-08 10:17:51 -070026
27description: Configures the ONF SEBA POD2 with AT&T workflow
28
29topology_template:
30 node_templates:
31 # Fabric configuration
32 switch#leaf_1:
33 type: tosca.nodes.Switch
34 properties:
35 driver: ofdpa3
36 ipv4Loopback: 192.168.0.201
37 ipv4NodeSid: 17
38 isEdgeRouter: True
Matteo Scandolo08c9c802018-10-12 10:00:03 -070039 name: AGG_SWITCH
Matteo Scandolo1675aa12018-10-08 14:54:36 -070040 ofId: of:0000000000000002
Matteo Scandolo1760e9b2018-10-08 10:17:51 -070041 routerMac: 00:00:02:01:06:01
42
43 # Setup the OLT switch port
44 port#olt_port:
45 type: tosca.nodes.SwitchPort
46 properties:
47 portId: 1
48 host_learning: false
49 requirements:
50 - switch:
51 node: switch#leaf_1
52 relationship: tosca.relationships.BelongsToOne
53
54 # Port connected to the BNG
55 port#bng_port:
56 type: tosca.nodes.SwitchPort
57 properties:
58 portId: 32
Matteo Scandolo1760e9b2018-10-08 10:17:51 -070059 requirements:
60 - switch:
61 node: switch#leaf_1
62 relationship: tosca.relationships.BelongsToOne
63
64 # Setup the fabric switch port where the external
65 # router is connected to
66 bngmapping:
67 type: tosca.nodes.BNGPortMapping
68 properties:
69 s_tag: any
70 switch_port: 32
71
Matteo Scandolo63813df2018-10-12 10:45:13 -070072 # DHCP L2 Relay config
73 dhcpl2relay-config-attr:
74 type: tosca.nodes.ServiceInstanceAttribute
75 properties:
76 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
77 value: >
78 {
79 "dhcpl2relay" : {
80 "useOltUplinkForServerPktInOut" : false,
81 "dhcpServerConnectPoints" : [ "of:0000000000000002/32" ]
82 }
83 }
84 requirements:
85 - service_instance:
86 node: onos_app#dhcpl2relay
87 relationship: tosca.relationships.BelongsToOne
88
Matteo Scandolo1760e9b2018-10-08 10:17:51 -070089 # ONU Whitelist
90 service#att:
91 type: tosca.nodes.AttWorkflowDriverService
92 properties:
93 name: att-workflow-driver
94 must-exist: true
95
96 ALPHe3d1cfe3:
97 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
98 properties:
99 serial_number: ALPHe3d1cfe3
100 pon_port_id: 536870912
Matteo Scandolo9d21ae72018-10-09 20:09:29 -0700101 device_id: of:000000000a5a007a
Matteo Scandolo1760e9b2018-10-08 10:17:51 -0700102 requirements:
103 - owner:
104 node: service#att
105 relationship: tosca.relationships.BelongsToOne
106
107 ISKT71e80080:
108 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
109 properties:
110 serial_number: ISKT71e80080
Matteo Scandolo9d21ae72018-10-09 20:09:29 -0700111 pon_port_id: 536870927
112 device_id: of:000000000a5a007a
Matteo Scandolo1760e9b2018-10-08 10:17:51 -0700113 requirements:
114 - owner:
115 node: service#att
116 relationship: tosca.relationships.BelongsToOne