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