blob: aa935e57d239333f671d8369c04d6c24422e75d9 [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-olt.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/oltdevice.yaml
20 - custom_types/onudevice.yaml
21 - custom_types/voltservice.yaml
22description: Create a simulated OLT Device in VOLTHA
23topology_template:
24 node_templates:
25
26 service#volt:
27 type: tosca.nodes.VOLTService
28 properties:
29 name: volt
30 must-exist: true
31
32 olt_device:
33 type: tosca.nodes.OLTDevice
34 properties:
35 name: olt-1
36 device_type: openolt
Suchitra Vemuri80140812019-02-07 23:16:19 -080037 host: 10.192.20.206
Suchitra Vemuric7962292019-02-07 20:33:45 -080038 port: 9191
39 switch_datapath_id: of:0000cc37ab5b6da8
40 switch_port: "7"
41 outer_tpid: "0x8100"
42 uplink: "65536"
43 nas_id: "NAS_ID"
44 requirements:
45 - volt_service:
46 node: service#volt
47 relationship: tosca.relationships.BelongsToOne
Kailash5126dbc2019-06-24 09:44:30 -070048
49 technologyProfile:
50 type: tosca.nodes.TechnologyProfile
51 properties:
52 profile_id: 64
53 technology: xgspon
54 profile_value: >
55 {
56 "name": "4QueueHybridProfileMap1",
57 "profile_type": "XPON",
Kailash38f62df2019-06-24 14:20:57 -070058 "version": 1,
59 "num_gem_ports": 4,
Kailash5126dbc2019-06-24 09:44:30 -070060 "instance_control": {
61 "onu": "multi-instance",
62 "uni": "single-instance",
63 "max_gem_payload_size": "auto"
64 },
65 "us_scheduler": {
66 "additional_bw": "auto",
67 "direction": "UPSTREAM",
68 "priority": 0,
69 "weight": 0,
70 "q_sched_policy": "hybrid"
71 },
72 "ds_scheduler": {
73 "additional_bw": "auto",
74 "direction": "DOWNSTREAM",
75 "priority": 0,
76 "weight": 0,
77 "q_sched_policy": "hybrid"
78 },
Kailash38f62df2019-06-24 14:20:57 -070079 "upstream_gem_port_attribute_list": [
80 {
81 "pbit_map": "0b00000101",
82 "aes_encryption": "True",
83 "scheduling_policy": "WRR",
84 "priority_q": 4,
85 "weight": 25,
86 "discard_policy": "TailDrop",
87 "max_q_size": "auto",
88 "discard_config": {
89 "max_threshold": 0,
90 "min_threshold": 0,
91 "max_probability": 0
92 }
93 },
94 {
95 "pbit_map": "0b00011010",
96 "aes_encryption": "True",
97 "scheduling_policy": "WRR",
98 "priority_q": 3,
99 "weight": 75,
100 "discard_policy": "TailDrop",
101 "max_q_size": "auto",
102 "discard_config": {
103 "min_threshold": 0,
104 "max_threshold": 0,
105 "max_probability": 0
106 }
107 },
108 {
109 "pbit_map": "0b00100000",
110 "aes_encryption": "True",
111 "scheduling_policy": "StrictPriority",
112 "priority_q": 2,
Kailash5126dbc2019-06-24 09:44:30 -0700113 "weight": 0,
Kailash38f62df2019-06-24 14:20:57 -0700114 "discard_policy": "TailDrop",
115 "max_q_size": "auto",
116 "discard_config": {
117 "min_threshold": 0,
118 "max_threshold": 0,
119 "max_probability": 0
120 }
121 },
122 {
123 "pbit_map": "0b11000000",
124 "aes_encryption": "True",
125 "scheduling_policy": "StrictPriority",
126 "priority_q": 1,
127 "weight": 25,
128 "discard_policy": "TailDrop",
Kailash5126dbc2019-06-24 09:44:30 -0700129 "max_q_size": "auto",
130 "discard_config": {
131 "min_threshold": 0,
132 "max_threshold": 0,
133 "max_probability": 0
134 }
135 }
136 ],
Kailash38f62df2019-06-24 14:20:57 -0700137 "downstream_gem_port_attribute_list": [
138 {
139 "pbit_map": "0b00000101",
140 "aes_encryption": "True",
141 "scheduling_policy": "WRR",
142 "priority_q": 4,
143 "weight": 10,
144 "discard_policy": "TailDrop",
145 "max_q_size": "auto",
146 "discard_config": {
147 "min_threshold": 0,
148 "max_threshold": 0,
149 "max_probability": 0
150 }
151 },
152 {
153 "pbit_map": "0b00011010",
154 "aes_encryption": "True",
155 "scheduling_policy": "WRR",
156 "priority_q": 3,
157 "weight": 90,
158 "discard_policy": "TailDrop",
159 "max_q_size": "auto",
160 "discard_config": {
161 "min_threshold": 0,
162 "max_threshold": 0,
163 "max_probability": 0
164 }
165 },
166 {
167 "pbit_map": "0b00100000",
168 "aes_encryption": "True",
169 "scheduling_policy": "StrictPriority",
170 "priority_q": 2,
Kailash5126dbc2019-06-24 09:44:30 -0700171 "weight": 0,
Kailash38f62df2019-06-24 14:20:57 -0700172 "discard_policy": "TailDrop",
173 "max_q_size": "auto",
174 "discard_config": {
175 "min_threshold": 0,
176 "max_threshold": 0,
177 "max_probability": 0
178 }
179 },
180 {
181 "pbit_map": "0b11000000",
182 "aes_encryption": "True",
183 "scheduling_policy": "StrictPriority",
184 "priority_q": 1,
185 "weight": 25,
186 "discard_policy": "TailDrop",
Kailash5126dbc2019-06-24 09:44:30 -0700187 "max_q_size": "auto",
188 "discard_config": {
189 "min_threshold": 0,
190 "max_threshold": 0,
191 "max_probability": 0
192 }
193 }
194 ]
195 }