blob: aa8ca5c1e2728170f639276f1d1d9fb3a228cd98 [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:
27
Kailashbd6c5e82019-06-26 13:10:02 -070028 technologyProfile:
29 type: tosca.nodes.TechnologyProfile
30 properties:
31 profile_id: 64
32 technology: xgspon
33 profile_value: >
34 {
35 "name": "4QueueHybridProfileMap1",
36 "profile_type": "XPON",
37 "version": 1.0,
38 "num_gem_ports": 1,
39 "instance_control": {
40 "onu": "multi-instance",
41 "uni": "single-instance",
42 "max_gem_payload_size": "auto"
43 },
44 "us_scheduler": {
45 "additional_bw": "auto",
46 "direction": "UPSTREAM",
47 "priority": 0,
48 "weight": 0,
49 "q_sched_policy": "hybrid"
50 },
51 "ds_scheduler": {
52 "additional_bw": "auto",
53 "direction": "DOWNSTREAM",
54 "priority": 0,
55 "weight": 0,
56 "q_sched_policy": "hybrid"
57 },
58 "upstream_gem_port_attribute_list": [{
59 "pbit_map": "0b11000000",
60 "aes_encryption": "TRUE",
61 "scheduling_policy": "Strict-Priority",
62 "priority_q": 1,
63 "weight": 0,
64 "discard_policy": "Tail-Drop",
65 "max_q_size": "auto",
66 "discard_config": {
67 "min_threshold": 0,
68 "max_threshold": 0,
69 "max_probability": 0
70 }
71 }
72 ],
73 "downstream_gem_port_attribute_list": [{
74 "pbit_map": "0b11000000",
75 "aes_encryption": "TRUE",
76 "scheduling_policy": "Strict-Priority",
77 "priority_q": 1,
78 "weight": 0,
79 "discard_policy": "Tail-Drop",
80 "max_q_size": "auto",
81 "discard_config": {
82 "min_threshold": 0,
83 "max_threshold": 0,
84 "max_probability": 0
85 }
86 }
87 ]
88 }