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