blob: 43395d3810da2b054126cc67c50a770443606c4d [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:
17# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @bbsim-16.yaml http://127.0.0.1:30007/run
18
19tosca_definitions_version: tosca_simple_yaml_1_0
20imports:
21 - custom_types/voltservice.yaml
22 - custom_types/technologyprofile.yaml
23
24description: Create a simulated OLT Device in VOLTHA
25topology_template:
26 node_templates:
Kailashbd6c5e82019-06-26 13:10:02 -070027 technologyProfile:
28 type: tosca.nodes.TechnologyProfile
29 properties:
30 profile_id: 64
31 technology: xgspon
32 profile_value: >
33 {
34 "name": "4QueueHybridProfileMap1",
35 "profile_type": "XPON",
36 "version": 1.0,
37 "num_gem_ports": 1,
38 "instance_control": {
39 "onu": "multi-instance",
40 "uni": "single-instance",
41 "max_gem_payload_size": "auto"
42 },
43 "us_scheduler": {
44 "additional_bw": "auto",
45 "direction": "UPSTREAM",
46 "priority": 0,
47 "weight": 0,
48 "q_sched_policy": "hybrid"
49 },
50 "ds_scheduler": {
51 "additional_bw": "auto",
52 "direction": "DOWNSTREAM",
53 "priority": 0,
54 "weight": 0,
55 "q_sched_policy": "hybrid"
56 },
57 "upstream_gem_port_attribute_list": [{
Andy Bavierf758d782019-07-18 15:18:47 -070058 "pbit_map": "0b11000000",
59 "aes_encryption": "TRUE",
60 "scheduling_policy": "Strict-Priority",
Kailashbd6c5e82019-06-26 13:10:02 -070061 "priority_q": 1,
62 "weight": 0,
Andy Bavierf758d782019-07-18 15:18:47 -070063 "discard_policy": "Tail-Drop",
Kailashbd6c5e82019-06-26 13:10:02 -070064 "max_q_size": "auto",
65 "discard_config": {
66 "min_threshold": 0,
67 "max_threshold": 0,
68 "max_probability": 0
69 }
70 }
71 ],
72 "downstream_gem_port_attribute_list": [{
Andy Bavierf758d782019-07-18 15:18:47 -070073 "pbit_map": "0b11000000",
74 "aes_encryption": "TRUE",
75 "scheduling_policy": "Strict-Priority",
Kailashbd6c5e82019-06-26 13:10:02 -070076 "priority_q": 1,
77 "weight": 0,
Andy Bavierf758d782019-07-18 15:18:47 -070078 "discard_policy": "Tail-Drop",
Kailashbd6c5e82019-06-26 13:10:02 -070079 "max_q_size": "auto",
80 "discard_config": {
81 "min_threshold": 0,
82 "max_threshold": 0,
83 "max_probability": 0
84 }
85 }
86 ]
Kailashcdff20f2019-07-08 14:40:06 -070087 }