blob: 32505d360f5c39a3bbebf06b3cf2cb67f939bcd4 [file] [log] [blame]
Luca Pretea67d3532018-09-14 10:16:10 -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 Scandolo74548712018-09-19 13:12:43 -070015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @edgecore-pod1-fabric.yaml http://192.168.99.181:30007/run
Luca Pretea67d3532018-09-14 10:16:10 -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
Luca Prete60cf4e62018-12-04 16:41:51 -080025 - custom_types/serviceinstanceattribute.yaml
26 - custom_types/onosapp.yaml
Luca Pretea67d3532018-09-14 10:16:10 -070027
Luca Prete901cc2e2018-09-14 14:15:31 -070028description: Configures the EdgeCore SEBA POD with AT&T workflow
Luca Pretea67d3532018-09-14 10:16:10 -070029
30topology_template:
31 node_templates:
32 # Fabric configuration
33 switch#leaf_1:
34 type: tosca.nodes.Switch
35 properties:
36 driver: ofdpa3
37 ipv4Loopback: 192.168.0.201
38 ipv4NodeSid: 17
39 isEdgeRouter: True
40 name: leaf_1
41 ofId: of:0000000000000001
42 routerMac: 00:00:02:01:06:01
43
44 # Setup the OLT switch port
45 port#olt_port:
46 type: tosca.nodes.SwitchPort
47 properties:
Luca Prete11a7eda2018-09-17 12:51:36 -070048 portId: 49
Luca Pretea67d3532018-09-14 10:16:10 -070049 host_learning: false
50 requirements:
51 - switch:
52 node: switch#leaf_1
53 relationship: tosca.relationships.BelongsToOne
54
55 # Port connected to the BNG
56 port#bng_port:
57 type: tosca.nodes.SwitchPort
58 properties:
Luca Prete11a7eda2018-09-17 12:51:36 -070059 portId: 48
Luca Pretea67d3532018-09-14 10:16:10 -070060 host_learning: false
61 requirements:
62 - switch:
63 node: switch#leaf_1
64 relationship: tosca.relationships.BelongsToOne
65
66 # Setup the fabric switch port where the external
67 # router is connected to
68 bngmapping:
69 type: tosca.nodes.BNGPortMapping
70 properties:
71 s_tag: any
Luca Prete11a7eda2018-09-17 12:51:36 -070072 switch_port: 48
Luca Pretea67d3532018-09-14 10:16:10 -070073
74 # ONU Whitelist
75 service#att:
76 type: tosca.nodes.AttWorkflowDriverService
77 properties:
78 name: att-workflow-driver
79 must-exist: true
80
Luca Prete162d4622018-09-17 15:46:50 -070081 ALPHe3d1cea3:
Luca Prete901cc2e2018-09-14 14:15:31 -070082 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
83 properties:
Luca Prete162d4622018-09-17 15:46:50 -070084 serial_number: ALPHe3d1cea3
Matteo Scandolocfd65562018-09-19 11:58:57 -070085 # pon_port_id: 536870912
Matteo Scandolo3987ed92018-09-19 12:02:36 -070086 pon_port_id: 536870913
Luca Prete901cc2e2018-09-14 14:15:31 -070087 device_id: of:00000000c0a863b6
88 requirements:
89 - owner:
90 node: service#att
91 relationship: tosca.relationships.BelongsToOne
92
Matteo Scandolocfd65562018-09-19 11:58:57 -070093 # ALPHe3d1cee9:
94 # type: tosca.nodes.AttWorkflowDriverWhiteListEntry
95 # properties:
96 # serial_number: ALPHe3d1cee9
97 # pon_port_id: 536870912
98 # device_id: of:00000000c0a863b6
99 # requirements:
100 # - owner:
101 # node: service#att
102 # relationship: tosca.relationships.BelongsToOne
Luca Prete901cc2e2018-09-14 14:15:31 -0700103
Luca Prete448d5842018-09-17 16:25:35 -0700104 ISKT71e810c0:
Luca Pretea67d3532018-09-14 10:16:10 -0700105 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
106 properties:
Luca Prete448d5842018-09-17 16:25:35 -0700107 serial_number: ISKT71e810c0
Luca Pretebcc50272018-09-17 10:50:16 -0700108 pon_port_id: 536870912
109 device_id: of:00000000c0a863b6
110 requirements:
111 - owner:
112 node: service#att
113 relationship: tosca.relationships.BelongsToOne
114
Luca Prete162d4622018-09-17 15:46:50 -0700115 ISKT71e81130:
Luca Pretebcc50272018-09-17 10:50:16 -0700116 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
117 properties:
Luca Prete162d4622018-09-17 15:46:50 -0700118 serial_number: ISKT71e81130
Luca Pretebcc50272018-09-17 10:50:16 -0700119 pon_port_id: 536870913
120 device_id: of:00000000c0a863b6
121 requirements:
122 - owner:
123 node: service#att
124 relationship: tosca.relationships.BelongsToOne
125
Luca Prete162d4622018-09-17 15:46:50 -0700126 ISKT71e81050:
Luca Pretebcc50272018-09-17 10:50:16 -0700127 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
128 properties:
Luca Prete162d4622018-09-17 15:46:50 -0700129 serial_number: ISKT71e81050
Luca Prete901cc2e2018-09-14 14:15:31 -0700130 pon_port_id: 536870913
131 device_id: of:00000000c0a863b6
Luca Pretea67d3532018-09-14 10:16:10 -0700132 requirements:
133 - owner:
134 node: service#att
135 relationship: tosca.relationships.BelongsToOne
Luca Prete019d66b2018-12-03 21:46:51 -0800136
137 # DHCP L2 Relay config
138 onos_app#dhcpl2relay:
139 type: tosca.nodes.ONOSApp
140 properties:
141 name: dhcpl2relay
142 must-exist: true
143
144 dhcpl2relay-config-attr:
145 type: tosca.nodes.ServiceInstanceAttribute
146 properties:
147 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
148 value: >
149 {
150 "dhcpl2relay" : {
151 "useOltUplinkForServerPktInOut" : false,
152 "dhcpServerConnectPoints" : [ "of:0000000000000001/48" ]
153 }
154 }
155 requirements:
156 - service_instance:
157 node: onos_app#dhcpl2relay
158 relationship: tosca.relationships.BelongsToOne