blob: 66bbe4d2e948c07e0f944fa26a7a4d691cd8a041 [file] [log] [blame]
Suchitra Vemuric7962292019-02-07 20:33:45 -08001# 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
Suchitra Vemuri80140812019-02-07 23:16:19 -080015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @flex-pod1-olt-fabric.yaml http://10.192.20.45:30007/run
Suchitra Vemuric7962292019-02-07 20:33:45 -080016
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 - custom_types/serviceinstanceattribute.yaml
26 - custom_types/onosapp.yaml
Kailash77190a82019-06-27 14:23:48 -070027 - custom_types/technologyprofile.yaml
Suchitra Vemuric7962292019-02-07 20:33:45 -080028
29description: Configures the Flex POD with AT&T workflow
30
31topology_template:
32 node_templates:
33 # Fabric configuration
34 switch#leaf_1:
35 type: tosca.nodes.Switch
36 properties:
37 driver: ofdpa3
38 ipv4Loopback: 192.168.9.24
39 ipv4NodeSid: 19
40 isEdgeRouter: false
41 name: Fabric Switch - 1
42 ofId: of:0000cc37ab5b6da8
43 routerMac: 00:00:00:00:00:03
44
45 # Setup the OLT switch port
46 port#olt_port:
47 type: tosca.nodes.SwitchPort
48 properties:
49 portId: 7
50 host_learning: false
51 requirements:
52 - switch:
53 node: switch#leaf_1
54 relationship: tosca.relationships.BelongsToOne
55
56 # Port connected to the BNG
57 port#bng_port:
58 type: tosca.nodes.SwitchPort
59 properties:
Kailasha32256f2019-06-21 14:05:29 -070060 portId: 3
Suchitra Vemuric7962292019-02-07 20:33:45 -080061 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
Kailash24be8f02019-06-24 16:58:29 -070072 switch_port: 3
Suchitra Vemuric7962292019-02-07 20:33:45 -080073
74 # DHCP L2 Relay config
75 onos_app#dhcpl2relay:
76 type: tosca.nodes.ONOSApp
77 properties:
78 name: dhcpl2relay
79 must-exist: true
80
81 dhcpl2relay-config-attr:
82 type: tosca.nodes.ServiceInstanceAttribute
83 properties:
84 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
85 value: >
86 {
87 "dhcpl2relay" : {
88 "useOltUplinkForServerPktInOut" : false,
Kailash24be8f02019-06-24 16:58:29 -070089 "dhcpServerConnectPoints" : [ "of:0000cc37ab5b6da8/3" ]
Suchitra Vemuric7962292019-02-07 20:33:45 -080090 }
91 }
92 requirements:
93 - service_instance:
94 node: onos_app#dhcpl2relay
95 relationship: tosca.relationships.BelongsToOne
96
97 # ONU Whitelist
98 service#att:
99 type: tosca.nodes.AttWorkflowDriverService
100 properties:
101 name: att-workflow-driver
102 must-exist: true
103
104 ALPHe3d1cfa7:
105 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
106 properties:
107 serial_number: ALPHe3d1cfa7
108 pon_port_id: 536870912
Suchitra Vemuri4bb52502019-02-12 11:43:25 -0800109 device_id: of:000000000ac014ce
Suchitra Vemuric7962292019-02-07 20:33:45 -0800110 requirements:
111 - owner:
112 node: service#att
113 relationship: tosca.relationships.BelongsToOne
Kailash77190a82019-06-27 14:23:48 -0700114
115 technologyProfile:
116 type: tosca.nodes.TechnologyProfile
117 properties:
118 profile_id: 64
119 technology: xgspon
120 profile_value: >
121 {
122 "name": "4QueueHybridProfileMap1",
123 "profile_type": "XPON",
124 "version": 1.0,
125 "num_gem_ports": 1,
126 "instance_control": {
127 "onu": "multi-instance",
128 "uni": "single-instance",
129 "max_gem_payload_size": "auto"
130 },
131 "us_scheduler": {
132 "additional_bw": "auto",
133 "direction": "UPSTREAM",
134 "priority": 0,
135 "weight": 0,
136 "q_sched_policy": "hybrid"
137 },
138 "ds_scheduler": {
139 "additional_bw": "auto",
140 "direction": "DOWNSTREAM",
141 "priority": 0,
142 "weight": 0,
143 "q_sched_policy": "hybrid"
144 },
145 "upstream_gem_port_attribute_list": [{
146 "pbit_map": "0b11111111",
147 "aes_encryption": "True",
148 "scheduling_policy": "StrictPriority",
149 "priority_q": 1,
150 "weight": 0,
151 "discard_policy": "TailDrop",
152 "max_q_size": "auto",
153 "discard_config": {
154 "min_threshold": 0,
155 "max_threshold": 0,
156 "max_probability": 0
157 }
158 }
159 ],
160 "downstream_gem_port_attribute_list": [{
161 "pbit_map": "0b11111111",
162 "aes_encryption": "True",
163 "scheduling_policy": "StrictPriority",
164 "priority_q": 1,
165 "weight": 0,
166 "discard_policy": "TailDrop",
167 "max_q_size": "auto",
168 "discard_config": {
169 "min_threshold": 0,
170 "max_threshold": 0,
171 "max_probability": 0
172 }
173 }
174 ]
175 }