You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [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 | |
Suchitra Vemuri | 58ffc07 | 2019-06-21 15:03:34 -0700 | [diff] [blame^] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-olt.yaml http://10.90.0.101:30007/run |
You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [diff] [blame] | 16 | |
| 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | imports: |
| 19 | - custom_types/oltdevice.yaml |
| 20 | - custom_types/onudevice.yaml |
| 21 | - custom_types/voltservice.yaml |
Suchitra Vemuri | 58ffc07 | 2019-06-21 15:03:34 -0700 | [diff] [blame^] | 22 | - custom_types/technologyprofile.yaml |
You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [diff] [blame] | 23 | description: Create a simulated OLT Device in VOLTHA |
| 24 | topology_template: |
| 25 | node_templates: |
| 26 | |
| 27 | service#volt: |
| 28 | type: tosca.nodes.VOLTService |
| 29 | properties: |
| 30 | name: volt |
| 31 | must-exist: true |
| 32 | |
| 33 | olt_device: |
| 34 | type: tosca.nodes.OLTDevice |
| 35 | properties: |
| 36 | name: ONF OLT |
| 37 | device_type: openolt |
| 38 | host: 10.90.0.114 |
| 39 | port: 9191 |
| 40 | switch_datapath_id: of:0000000000000001 |
| 41 | switch_port: "1" |
| 42 | outer_tpid: "0x8100" |
Scott Baker | 970d5d5 | 2018-12-11 07:00:17 +0000 | [diff] [blame] | 43 | uplink: "65536" |
You Wang | a069ccb | 2018-11-13 13:25:59 -0800 | [diff] [blame] | 44 | nas_id: "NAS_ID" |
| 45 | requirements: |
| 46 | - volt_service: |
| 47 | node: service#volt |
| 48 | relationship: tosca.relationships.BelongsToOne |
Suchitra Vemuri | 58ffc07 | 2019-06-21 15:03:34 -0700 | [diff] [blame^] | 49 | |
| 50 | technologyProfile: |
| 51 | type: tosca.nodes.TechnologyProfile |
| 52 | properties: |
| 53 | profile_id: 64 |
| 54 | technology: xgspon |
| 55 | profile_value: > |
| 56 | { |
| 57 | "name": "4QueueHybridProfileMap1", |
| 58 | "profile Type": "XPON", |
| 59 | "version": 1.0, |
| 60 | "instance_control": { |
| 61 | "onu": "multi-instance", |
| 62 | "uni": "single-instance", |
| 63 | "num_gem_ports": 1, |
| 64 | "Max_GEM_Payload_Size": "auto" |
| 65 | }, |
| 66 | "u_s_scheduler": { |
| 67 | "additional_bw": "auto", |
| 68 | "priority": 0, |
| 69 | "weight": 0, |
| 70 | "q_sched_policy": "hybrid" |
| 71 | }, |
| 72 | "d_s_scheduler": { |
| 73 | "priority": 0, |
| 74 | "weight": 0, |
| 75 | "q_sched_policy": "hybrid" |
| 76 | }, |
| 77 | "Upstream GEM_Port_attribute_List": [{ |
| 78 | "pbit_map": "0b11000000", |
| 79 | "AES_Encryption": "TRUE", |
| 80 | "Scheduling_Policy": "Strict-Priority", |
| 81 | "Priority_Q": 1, |
| 82 | "Weight": 0, |
| 83 | "Discard_Policy": "Tail-Drop", |
| 84 | "Max_Q_Size": "auto", |
| 85 | "Discard_Config": { |
| 86 | "Min_Threshold": 0, |
| 87 | "Max_Threshold": 0, |
| 88 | "Max_Probability": 0 |
| 89 | } |
| 90 | } |
| 91 | ], |
| 92 | "Downstream GEM_Port_attribute_List": [{ |
| 93 | "pbit_map": "0b11000000", |
| 94 | "AES_Encryption": "TRUE", |
| 95 | "Scheduling_Policy": "Strict-Priority", |
| 96 | "Priority_Q": 1, |
| 97 | "Weight": 0, |
| 98 | "Discard_Policy": "Tail-Drop", |
| 99 | "Max_Q_Size": "auto", |
| 100 | "Discard_Config": { |
| 101 | "Min_Threshold": 0, |
| 102 | "Max_Threshold": 0, |
| 103 | "Max_Probability": 0 |
| 104 | } |
| 105 | } |
| 106 | ] |
| 107 | } |