blob: 223f68757924bd5d1fa901a71ca7407e81f813c1 [file] [log] [blame]
Kailashbd6c5e82019-06-26 13:10:02 -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
15# Example TOSCA to create technology profile
16# Load into xos-tosca with:
Kailashe0891f22019-07-31 09:20:47 -070017# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @technology-profile.yaml http://127.0.0.1:30007/run
Kailashbd6c5e82019-06-26 13:10:02 -070018
19tosca_definitions_version: tosca_simple_yaml_1_0
20imports:
21 - custom_types/voltservice.yaml
22 - custom_types/technologyprofile.yaml
Kailashbd6c5e82019-06-26 13:10:02 -070023description: Create a simulated OLT Device in VOLTHA
24topology_template:
25 node_templates:
Kailashbd6c5e82019-06-26 13:10:02 -070026 technologyProfile:
27 type: tosca.nodes.TechnologyProfile
28 properties:
29 profile_id: 64
30 technology: xgspon
31 profile_value: >
32 {
33 "name": "4QueueHybridProfileMap1",
34 "profile_type": "XPON",
35 "version": 1.0,
36 "num_gem_ports": 1,
37 "instance_control": {
38 "onu": "multi-instance",
39 "uni": "single-instance",
40 "max_gem_payload_size": "auto"
41 },
42 "us_scheduler": {
43 "additional_bw": "auto",
44 "direction": "UPSTREAM",
45 "priority": 0,
46 "weight": 0,
47 "q_sched_policy": "hybrid"
48 },
49 "ds_scheduler": {
50 "additional_bw": "auto",
51 "direction": "DOWNSTREAM",
52 "priority": 0,
53 "weight": 0,
54 "q_sched_policy": "hybrid"
55 },
56 "upstream_gem_port_attribute_list": [{
Kailashe0891f22019-07-31 09:20:47 -070057 "pbit_map": "0b11111111",
58 "aes_encryption": "True",
59 "scheduling_policy": "StrictPriority",
Kailashbd6c5e82019-06-26 13:10:02 -070060 "priority_q": 1,
61 "weight": 0,
Kailashe0891f22019-07-31 09:20:47 -070062 "discard_policy": "TailDrop",
Kailashbd6c5e82019-06-26 13:10:02 -070063 "max_q_size": "auto",
64 "discard_config": {
65 "min_threshold": 0,
66 "max_threshold": 0,
67 "max_probability": 0
68 }
69 }
70 ],
71 "downstream_gem_port_attribute_list": [{
Kailashe0891f22019-07-31 09:20:47 -070072 "pbit_map": "0b11111111",
73 "aes_encryption": "True",
74 "scheduling_policy": "StrictPriority",
Kailashbd6c5e82019-06-26 13:10:02 -070075 "priority_q": 1,
76 "weight": 0,
Kailashe0891f22019-07-31 09:20:47 -070077 "discard_policy": "TailDrop",
Kailashbd6c5e82019-06-26 13:10:02 -070078 "max_q_size": "auto",
79 "discard_config": {
80 "min_threshold": 0,
81 "max_threshold": 0,
82 "max_probability": 0
83 }
84 }
85 ]
Kailashcdff20f2019-07-08 14:40:06 -070086 }