Kailash | bd6c5e8 | 2019-06-26 13:10:02 -0700 | [diff] [blame] | 1 | # 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 | |
| 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | imports: |
| 21 | - custom_types/voltservice.yaml |
| 22 | - custom_types/technologyprofile.yaml |
| 23 | |
| 24 | description: Create a simulated OLT Device in VOLTHA |
| 25 | topology_template: |
| 26 | node_templates: |
Kailash | bd6c5e8 | 2019-06-26 13:10:02 -0700 | [diff] [blame] | 27 | 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": [{ |
Kailash | cdff20f | 2019-07-08 14:40:06 -0700 | [diff] [blame] | 58 | "pbit_map": "0b11111111", |
| 59 | "aes_encryption": "True", |
| 60 | "scheduling_policy": "StrictPriority", |
Kailash | bd6c5e8 | 2019-06-26 13:10:02 -0700 | [diff] [blame] | 61 | "priority_q": 1, |
| 62 | "weight": 0, |
Kailash | cdff20f | 2019-07-08 14:40:06 -0700 | [diff] [blame] | 63 | "discard_policy": "TailDrop", |
Kailash | bd6c5e8 | 2019-06-26 13:10:02 -0700 | [diff] [blame] | 64 | "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": [{ |
Kailash | cdff20f | 2019-07-08 14:40:06 -0700 | [diff] [blame] | 73 | "pbit_map": "0b11111111", |
| 74 | "aes_encryption": "True", |
| 75 | "scheduling_policy": "StrictPriority", |
Kailash | bd6c5e8 | 2019-06-26 13:10:02 -0700 | [diff] [blame] | 76 | "priority_q": 1, |
| 77 | "weight": 0, |
Kailash | cdff20f | 2019-07-08 14:40:06 -0700 | [diff] [blame] | 78 | "discard_policy": "TailDrop", |
Kailash | bd6c5e8 | 2019-06-26 13:10:02 -0700 | [diff] [blame] | 79 | "max_q_size": "auto", |
| 80 | "discard_config": { |
| 81 | "min_threshold": 0, |
| 82 | "max_threshold": 0, |
| 83 | "max_probability": 0 |
| 84 | } |
| 85 | } |
| 86 | ] |
Kailash | cdff20f | 2019-07-08 14:40:06 -0700 | [diff] [blame] | 87 | } |