blob: 45fe3107c7237b4ba202f9347d8b24627ec056d7 [file] [log] [blame]
Luca Preteda53c892018-09-26 16:10:43 -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
15# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-fabric.yaml http://10.90.0.101: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/bngportmapping.yaml
23 - custom_types/attworkflowdriverwhitelistentry.yaml
24 - custom_types/attworkflowdriverservice.yaml
25
26description: Configures the ONF SEBA POD with AT&T workflow
27
28topology_template:
29 node_templates:
30 # Fabric configuration
31 switch#leaf_1:
32 type: tosca.nodes.Switch
33 properties:
34 driver: ofdpa3
35 ipv4Loopback: 192.168.0.201
36 ipv4NodeSid: 17
37 isEdgeRouter: True
38 name: leaf_1
39 ofId: of:0000000000000001
40 routerMac: 00:00:02:01:06:01
41
42 # Setup the EdgeCore OLT switch port
43 port#edgecore_olt_port:
44 type: tosca.nodes.SwitchPort
45 properties:
46 portId: 49
47 host_learning: false
48 requirements:
49 - switch:
50 node: switch#leaf_1
51 relationship: tosca.relationships.BelongsToOne
52
53 # Setup the Adtran OLT switch port
54 port#adtran_olt_port:
55 type: tosca.nodes.SwitchPort
56 properties:
57 portId: 50
58 host_learning: false
59 requirements:
60 - switch:
61 node: switch#leaf_1
62 relationship: tosca.relationships.BelongsToOne
63
64 # Setup the CIG OLT switch port
65 port#cig_olt_port:
66 type: tosca.nodes.SwitchPort
67 properties:
68 portId: 51
69 host_learning: false
70 requirements:
71 - switch:
72 node: switch#leaf_1
73 relationship: tosca.relationships.BelongsToOne
74
75 # Setup the Iskratel XGS-PON OLT switch port
76 port#iskratelx_olt_port:
77 type: tosca.nodes.SwitchPort
78 properties:
79 portId: 52
80 host_learning: false
81 requirements:
82 - switch:
83 node: switch#leaf_1
84 relationship: tosca.relationships.BelongsToOne
85
86 # Setup the Iskratel GPON OLT switch port
87 port#iskratelg_olt_port:
88 type: tosca.nodes.SwitchPort
89 properties:
90 portId: 47
91 host_learning: false
92 requirements:
93 - switch:
94 node: switch#leaf_1
95 relationship: tosca.relationships.BelongsToOne
96
97 # Port connected to the BNG
98 port#bng_port:
99 type: tosca.nodes.SwitchPort
100 properties:
101 portId: 48
102 host_learning: false
103 requirements:
104 - switch:
105 node: switch#leaf_1
106 relationship: tosca.relationships.BelongsToOne
107
108 # Setup the fabric switch port where the external
109 # router is connected to
110 bngmapping:
111 type: tosca.nodes.BNGPortMapping
112 properties:
113 s_tag: any
114 switch_port: 48
115
116 # ONU Whitelist
117 service#att:
118 type: tosca.nodes.AttWorkflowDriverService
119 properties:
120 name: att-workflow-driver
121 must-exist: true
122
123 ALPHA:
124 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
125 properties:
126 serial_number: ALPHA
127 pon_port_id: 12345678
128 device_id: of:000000000a5a0072
129 requirements:
130 - owner:
131 node: service#att
132 relationship: tosca.relationships.BelongsToOne
133
134 ADTRAN:
135 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
136 properties:
137 serial_number: ADTRAN
138 pon_port_id: 536870912
139 device_id: of:000000000a5a0072
140 requirements:
141 - owner:
142 node: service#att
143 relationship: tosca.relationships.BelongsToOne
144
145 CIG:
146 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
147 properties:
148 serial_number: CIG
149 pon_port_id: 536870912
150 device_id: of:000000000a5a0072
151 requirements:
152 - owner:
153 node: service#att
154 relationship: tosca.relationships.BelongsToOne
155
156 ISKRATELK:
157 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
158 properties:
159 serial_number: ISKRATELK
160 pon_port_id: 536870912
161 device_id: of:000000000a5a0072
162 requirements:
163 - owner:
164 node: service#att
165 relationship: tosca.relationships.BelongsToOne
166
167 ISKRATELG:
168 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
169 properties:
170 serial_number: ISKRATELG
171 pon_port_id: 536870912
172 device_id: of:000000000a5a0072
173 requirements:
174 - owner:
175 node: service#att
176 relationship: tosca.relationships.BelongsToOne