blob: afed8f9bd9eded8724ecb04f6ece032cc614ed2a [file] [log] [blame]
Matteo Scandolo97d853b2018-08-29 16:22:08 -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 Scandolo77171952018-09-04 14:43:43 -070015# 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
Matteo Scandolo97d853b2018-08-29 16:22:08 -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 Scandolo99ad3762018-10-12 13:54:30 -070026 - custom_types/onosapp.yaml
Matteo Scandolo4e7cbf12019-04-17 15:09:35 -070027 - custom_types/onosservice.yaml
28 - custom_types/serviceinstanceattribute.yaml
Matteo Scandolo97d853b2018-08-29 16:22:08 -070029
30description: Configures the ONF SEBA POD with AT&T workflow
31
32topology_template:
33 node_templates:
Matteo Scandolo4e7cbf12019-04-17 15:09:35 -070034 # ONOS Apps for tech-profiles
35 service#onos:
36 type: tosca.nodes.ONOSService
37 properties:
38 name: onos
39 must-exist: true
40
41 onos_app#sadis:
42 type: tosca.nodes.ONOSApp
43 properties:
44 name: sadis
45 must-exist: true
46 requirements:
47 - owner:
48 node: service#onos
49 relationship: tosca.relationships.BelongsToOne
50
51 sadis-config-attr:
52 type: tosca.nodes.ServiceInstanceAttribute
53 properties:
54 name: /onos/v1/network/configuration/apps/org.opencord.sadis
55 value: >
56 {
57 "sadis" : {
58 "integration" : {
59 "cache" : {
60 "maxsize" : 1000,
61 "ttl": "PT300S"
62 },
63 "url" : "http://sadis-service:8000/subscriber/%s"
64 }
65 },
66 "bandwidthprofile":{
67 "integration":{
68 "url": "http://sadis-service:8000/bandwidthprofiles/%s",
69 "cache":{
70 "enabled":true,
71 "maxsize":40,
72 "ttl":"PT1m"
73 }
74 }
75 }
76 }
77 requirements:
78 - service_instance:
79 node: onos_app#sadis
80 relationship: tosca.relationships.BelongsToOne
81
Matteo Scandolo97d853b2018-08-29 16:22:08 -070082 # Fabric configuration
83 switch#leaf_1:
84 type: tosca.nodes.Switch
85 properties:
86 driver: ofdpa3
87 ipv4Loopback: 192.168.0.201
88 ipv4NodeSid: 17
89 isEdgeRouter: True
Matteo Scandolo96790002018-10-12 11:56:44 -070090 name: AGG_SWITCH
Matteo Scandolo97d853b2018-08-29 16:22:08 -070091 ofId: of:0000000000000001
92 routerMac: 00:00:02:01:06:01
93
94 # Setup the OLT switch port
95 port#olt_port:
96 type: tosca.nodes.SwitchPort
97 properties:
98 portId: 1
99 host_learning: false
100 requirements:
101 - switch:
102 node: switch#leaf_1
103 relationship: tosca.relationships.BelongsToOne
104
105 # Port connected to the BNG
106 port#bng_port:
107 type: tosca.nodes.SwitchPort
108 properties:
109 portId: 31
Matteo Scandolo97d853b2018-08-29 16:22:08 -0700110 requirements:
111 - switch:
112 node: switch#leaf_1
113 relationship: tosca.relationships.BelongsToOne
114
115 # Setup the fabric switch port where the external
116 # router is connected to
117 bngmapping:
118 type: tosca.nodes.BNGPortMapping
119 properties:
120 s_tag: any
121 switch_port: 31
122
Matteo Scandolo63813df2018-10-12 10:45:13 -0700123 # DHCP L2 Relay config
Matteo Scandolo99ad3762018-10-12 13:54:30 -0700124 onos_app#dhcpl2relay:
125 type: tosca.nodes.ONOSApp
126 properties:
127 name: dhcpl2relay
128 must-exist: true
129
Matteo Scandolo63813df2018-10-12 10:45:13 -0700130 dhcpl2relay-config-attr:
131 type: tosca.nodes.ServiceInstanceAttribute
132 properties:
133 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
134 value: >
135 {
136 "dhcpl2relay" : {
137 "useOltUplinkForServerPktInOut" : false,
138 "dhcpServerConnectPoints" : [ "of:0000000000000001/31" ]
139 }
140 }
141 requirements:
142 - service_instance:
143 node: onos_app#dhcpl2relay
144 relationship: tosca.relationships.BelongsToOne
145
Matteo Scandolo97d853b2018-08-29 16:22:08 -0700146 # ONU Whitelist
147 service#att:
148 type: tosca.nodes.AttWorkflowDriverService
149 properties:
150 name: att-workflow-driver
151 must-exist: true
152
153 BRCM22222222:
154 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
155 properties:
156 serial_number: BRCM22222222
Matteo Scandolo209c1862018-09-17 15:08:44 -0700157 # pon_port_id: 536870912
158 pon_port_id: 12345678
Matteo Scandolo97d853b2018-08-29 16:22:08 -0700159 device_id: of:000000000a5a0072
160 requirements:
161 - owner:
162 node: service#att
163 relationship: tosca.relationships.BelongsToOne
164
Matteo Scandolo69a5e222018-09-13 16:09:14 -0700165 ALPHe3d1cfde:
166 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
167 properties:
168 serial_number: ALPHe3d1cfde
169 pon_port_id: 536870912
170 device_id: of:000000000a5a0072
171 requirements:
172 - owner:
173 node: service#att
174 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo77171952018-09-04 14:43:43 -0700175
176 ISKT71e801a0:
177 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
178 properties:
179 serial_number: ISKT71e801a0
Matteo Scandoloaa327852018-09-13 15:12:51 -0700180 pon_port_id: 536870912
Matteo Scandolo77171952018-09-04 14:43:43 -0700181 device_id: of:000000000a5a0072
182 requirements:
183 - owner:
184 node: service#att
185 relationship: tosca.relationships.BelongsToOne