blob: 60ea4f63fe89cbf2fb90e1863c898b1d56d015b0 [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 Scandolo97d853b2018-08-29 16:22:08 -070026
27description: Configures the ONF SEBA POD 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
39 name: leaf_1
40 ofId: of:0000000000000001
41 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: 31
Matteo Scandolo97d853b2018-08-29 16:22:08 -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: 31
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:0000000000000001/31" ]
82 }
83 }
84 requirements:
85 - service_instance:
86 node: onos_app#dhcpl2relay
87 relationship: tosca.relationships.BelongsToOne
88
Matteo Scandolo97d853b2018-08-29 16:22:08 -070089 # ONU Whitelist
90 service#att:
91 type: tosca.nodes.AttWorkflowDriverService
92 properties:
93 name: att-workflow-driver
94 must-exist: true
95
96 BRCM22222222:
97 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
98 properties:
99 serial_number: BRCM22222222
Matteo Scandolo209c1862018-09-17 15:08:44 -0700100 # pon_port_id: 536870912
101 pon_port_id: 12345678
Matteo Scandolo97d853b2018-08-29 16:22:08 -0700102 device_id: of:000000000a5a0072
103 requirements:
104 - owner:
105 node: service#att
106 relationship: tosca.relationships.BelongsToOne
107
Matteo Scandolo69a5e222018-09-13 16:09:14 -0700108 ALPHe3d1cfde:
109 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
110 properties:
111 serial_number: ALPHe3d1cfde
112 pon_port_id: 536870912
113 device_id: of:000000000a5a0072
114 requirements:
115 - owner:
116 node: service#att
117 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo77171952018-09-04 14:43:43 -0700118
119 ISKT71e801a0:
120 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
121 properties:
122 serial_number: ISKT71e801a0
Matteo Scandoloaa327852018-09-13 15:12:51 -0700123 pon_port_id: 536870912
Matteo Scandolo77171952018-09-04 14:43:43 -0700124 device_id: of:000000000a5a0072
125 requirements:
126 - owner:
127 node: service#att
128 relationship: tosca.relationships.BelongsToOne