Suchitra Vemuri | c796229 | 2019-02-07 20:33:45 -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 | 8014081 | 2019-02-07 23:16:19 -0800 | [diff] [blame] | 15 | # curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @flex-pod1-olt-olt.yaml http://10.192.20.45:30007/run |
Suchitra Vemuri | c796229 | 2019-02-07 20:33:45 -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 |
| 22 | description: Create a simulated OLT Device in VOLTHA |
| 23 | topology_template: |
| 24 | node_templates: |
| 25 | |
| 26 | service#volt: |
| 27 | type: tosca.nodes.VOLTService |
| 28 | properties: |
| 29 | name: volt |
| 30 | must-exist: true |
| 31 | |
| 32 | olt_device: |
| 33 | type: tosca.nodes.OLTDevice |
| 34 | properties: |
| 35 | name: olt-1 |
| 36 | device_type: openolt |
Suchitra Vemuri | 8014081 | 2019-02-07 23:16:19 -0800 | [diff] [blame] | 37 | host: 10.192.20.206 |
Suchitra Vemuri | c796229 | 2019-02-07 20:33:45 -0800 | [diff] [blame] | 38 | port: 9191 |
| 39 | switch_datapath_id: of:0000cc37ab5b6da8 |
| 40 | switch_port: "7" |
| 41 | outer_tpid: "0x8100" |
| 42 | uplink: "65536" |
| 43 | nas_id: "NAS_ID" |
| 44 | requirements: |
| 45 | - volt_service: |
| 46 | node: service#volt |
| 47 | relationship: tosca.relationships.BelongsToOne |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 48 | |
| 49 | technologyProfile: |
| 50 | type: tosca.nodes.TechnologyProfile |
| 51 | properties: |
| 52 | profile_id: 64 |
| 53 | technology: xgspon |
| 54 | profile_value: > |
| 55 | { |
| 56 | "name": "4QueueHybridProfileMap1", |
| 57 | "profile_type": "XPON", |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame^] | 58 | "version": 1, |
| 59 | "num_gem_ports": 4, |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 60 | "instance_control": { |
| 61 | "onu": "multi-instance", |
| 62 | "uni": "single-instance", |
| 63 | "max_gem_payload_size": "auto" |
| 64 | }, |
| 65 | "us_scheduler": { |
| 66 | "additional_bw": "auto", |
| 67 | "direction": "UPSTREAM", |
| 68 | "priority": 0, |
| 69 | "weight": 0, |
| 70 | "q_sched_policy": "hybrid" |
| 71 | }, |
| 72 | "ds_scheduler": { |
| 73 | "additional_bw": "auto", |
| 74 | "direction": "DOWNSTREAM", |
| 75 | "priority": 0, |
| 76 | "weight": 0, |
| 77 | "q_sched_policy": "hybrid" |
| 78 | }, |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame^] | 79 | "upstream_gem_port_attribute_list": [ |
| 80 | { |
| 81 | "pbit_map": "0b00000101", |
| 82 | "aes_encryption": "True", |
| 83 | "scheduling_policy": "WRR", |
| 84 | "priority_q": 4, |
| 85 | "weight": 25, |
| 86 | "discard_policy": "TailDrop", |
| 87 | "max_q_size": "auto", |
| 88 | "discard_config": { |
| 89 | "max_threshold": 0, |
| 90 | "min_threshold": 0, |
| 91 | "max_probability": 0 |
| 92 | } |
| 93 | }, |
| 94 | { |
| 95 | "pbit_map": "0b00011010", |
| 96 | "aes_encryption": "True", |
| 97 | "scheduling_policy": "WRR", |
| 98 | "priority_q": 3, |
| 99 | "weight": 75, |
| 100 | "discard_policy": "TailDrop", |
| 101 | "max_q_size": "auto", |
| 102 | "discard_config": { |
| 103 | "min_threshold": 0, |
| 104 | "max_threshold": 0, |
| 105 | "max_probability": 0 |
| 106 | } |
| 107 | }, |
| 108 | { |
| 109 | "pbit_map": "0b00100000", |
| 110 | "aes_encryption": "True", |
| 111 | "scheduling_policy": "StrictPriority", |
| 112 | "priority_q": 2, |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 113 | "weight": 0, |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame^] | 114 | "discard_policy": "TailDrop", |
| 115 | "max_q_size": "auto", |
| 116 | "discard_config": { |
| 117 | "min_threshold": 0, |
| 118 | "max_threshold": 0, |
| 119 | "max_probability": 0 |
| 120 | } |
| 121 | }, |
| 122 | { |
| 123 | "pbit_map": "0b11000000", |
| 124 | "aes_encryption": "True", |
| 125 | "scheduling_policy": "StrictPriority", |
| 126 | "priority_q": 1, |
| 127 | "weight": 25, |
| 128 | "discard_policy": "TailDrop", |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 129 | "max_q_size": "auto", |
| 130 | "discard_config": { |
| 131 | "min_threshold": 0, |
| 132 | "max_threshold": 0, |
| 133 | "max_probability": 0 |
| 134 | } |
| 135 | } |
| 136 | ], |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame^] | 137 | "downstream_gem_port_attribute_list": [ |
| 138 | { |
| 139 | "pbit_map": "0b00000101", |
| 140 | "aes_encryption": "True", |
| 141 | "scheduling_policy": "WRR", |
| 142 | "priority_q": 4, |
| 143 | "weight": 10, |
| 144 | "discard_policy": "TailDrop", |
| 145 | "max_q_size": "auto", |
| 146 | "discard_config": { |
| 147 | "min_threshold": 0, |
| 148 | "max_threshold": 0, |
| 149 | "max_probability": 0 |
| 150 | } |
| 151 | }, |
| 152 | { |
| 153 | "pbit_map": "0b00011010", |
| 154 | "aes_encryption": "True", |
| 155 | "scheduling_policy": "WRR", |
| 156 | "priority_q": 3, |
| 157 | "weight": 90, |
| 158 | "discard_policy": "TailDrop", |
| 159 | "max_q_size": "auto", |
| 160 | "discard_config": { |
| 161 | "min_threshold": 0, |
| 162 | "max_threshold": 0, |
| 163 | "max_probability": 0 |
| 164 | } |
| 165 | }, |
| 166 | { |
| 167 | "pbit_map": "0b00100000", |
| 168 | "aes_encryption": "True", |
| 169 | "scheduling_policy": "StrictPriority", |
| 170 | "priority_q": 2, |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 171 | "weight": 0, |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame^] | 172 | "discard_policy": "TailDrop", |
| 173 | "max_q_size": "auto", |
| 174 | "discard_config": { |
| 175 | "min_threshold": 0, |
| 176 | "max_threshold": 0, |
| 177 | "max_probability": 0 |
| 178 | } |
| 179 | }, |
| 180 | { |
| 181 | "pbit_map": "0b11000000", |
| 182 | "aes_encryption": "True", |
| 183 | "scheduling_policy": "StrictPriority", |
| 184 | "priority_q": 1, |
| 185 | "weight": 25, |
| 186 | "discard_policy": "TailDrop", |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 187 | "max_q_size": "auto", |
| 188 | "discard_config": { |
| 189 | "min_threshold": 0, |
| 190 | "max_threshold": 0, |
| 191 | "max_probability": 0 |
| 192 | } |
| 193 | } |
| 194 | ] |
| 195 | } |