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 |
Kailash | 1485c30 | 2019-06-24 15:01:53 -0700 | [diff] [blame] | 22 | - custom_types/technologyprofile.yaml |
Suchitra Vemuri | c796229 | 2019-02-07 20:33:45 -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: olt-1 |
| 37 | device_type: openolt |
Suchitra Vemuri | 8014081 | 2019-02-07 23:16:19 -0800 | [diff] [blame] | 38 | host: 10.192.20.206 |
Suchitra Vemuri | c796229 | 2019-02-07 20:33:45 -0800 | [diff] [blame] | 39 | port: 9191 |
| 40 | switch_datapath_id: of:0000cc37ab5b6da8 |
| 41 | switch_port: "7" |
| 42 | outer_tpid: "0x8100" |
| 43 | uplink: "65536" |
| 44 | nas_id: "NAS_ID" |
| 45 | requirements: |
| 46 | - volt_service: |
| 47 | node: service#volt |
| 48 | relationship: tosca.relationships.BelongsToOne |
Kailash | 5126dbc | 2019-06-24 09:44:30 -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", |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame] | 59 | "version": 1, |
| 60 | "num_gem_ports": 4, |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 61 | "instance_control": { |
| 62 | "onu": "multi-instance", |
| 63 | "uni": "single-instance", |
| 64 | "max_gem_payload_size": "auto" |
| 65 | }, |
| 66 | "us_scheduler": { |
| 67 | "additional_bw": "auto", |
| 68 | "direction": "UPSTREAM", |
| 69 | "priority": 0, |
| 70 | "weight": 0, |
| 71 | "q_sched_policy": "hybrid" |
| 72 | }, |
| 73 | "ds_scheduler": { |
| 74 | "additional_bw": "auto", |
| 75 | "direction": "DOWNSTREAM", |
| 76 | "priority": 0, |
| 77 | "weight": 0, |
| 78 | "q_sched_policy": "hybrid" |
| 79 | }, |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame] | 80 | "upstream_gem_port_attribute_list": [ |
| 81 | { |
| 82 | "pbit_map": "0b00000101", |
| 83 | "aes_encryption": "True", |
| 84 | "scheduling_policy": "WRR", |
| 85 | "priority_q": 4, |
| 86 | "weight": 25, |
| 87 | "discard_policy": "TailDrop", |
| 88 | "max_q_size": "auto", |
| 89 | "discard_config": { |
| 90 | "max_threshold": 0, |
| 91 | "min_threshold": 0, |
| 92 | "max_probability": 0 |
| 93 | } |
| 94 | }, |
| 95 | { |
| 96 | "pbit_map": "0b00011010", |
| 97 | "aes_encryption": "True", |
| 98 | "scheduling_policy": "WRR", |
| 99 | "priority_q": 3, |
| 100 | "weight": 75, |
| 101 | "discard_policy": "TailDrop", |
| 102 | "max_q_size": "auto", |
| 103 | "discard_config": { |
| 104 | "min_threshold": 0, |
| 105 | "max_threshold": 0, |
| 106 | "max_probability": 0 |
| 107 | } |
| 108 | }, |
| 109 | { |
| 110 | "pbit_map": "0b00100000", |
| 111 | "aes_encryption": "True", |
Kailash | 2343324 | 2019-06-25 14:05:16 -0700 | [diff] [blame] | 112 | "scheduling_policy": "Strict-Priority", |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame] | 113 | "priority_q": 2, |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 114 | "weight": 0, |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame] | 115 | "discard_policy": "TailDrop", |
| 116 | "max_q_size": "auto", |
| 117 | "discard_config": { |
| 118 | "min_threshold": 0, |
| 119 | "max_threshold": 0, |
| 120 | "max_probability": 0 |
| 121 | } |
| 122 | }, |
| 123 | { |
| 124 | "pbit_map": "0b11000000", |
| 125 | "aes_encryption": "True", |
Kailash | 2343324 | 2019-06-25 14:05:16 -0700 | [diff] [blame] | 126 | "scheduling_policy": "Strict-Priority", |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame] | 127 | "priority_q": 1, |
| 128 | "weight": 25, |
| 129 | "discard_policy": "TailDrop", |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 130 | "max_q_size": "auto", |
| 131 | "discard_config": { |
| 132 | "min_threshold": 0, |
| 133 | "max_threshold": 0, |
| 134 | "max_probability": 0 |
| 135 | } |
| 136 | } |
| 137 | ], |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame] | 138 | "downstream_gem_port_attribute_list": [ |
| 139 | { |
| 140 | "pbit_map": "0b00000101", |
| 141 | "aes_encryption": "True", |
| 142 | "scheduling_policy": "WRR", |
| 143 | "priority_q": 4, |
| 144 | "weight": 10, |
| 145 | "discard_policy": "TailDrop", |
| 146 | "max_q_size": "auto", |
| 147 | "discard_config": { |
| 148 | "min_threshold": 0, |
| 149 | "max_threshold": 0, |
| 150 | "max_probability": 0 |
| 151 | } |
| 152 | }, |
| 153 | { |
| 154 | "pbit_map": "0b00011010", |
| 155 | "aes_encryption": "True", |
| 156 | "scheduling_policy": "WRR", |
| 157 | "priority_q": 3, |
| 158 | "weight": 90, |
| 159 | "discard_policy": "TailDrop", |
| 160 | "max_q_size": "auto", |
| 161 | "discard_config": { |
| 162 | "min_threshold": 0, |
| 163 | "max_threshold": 0, |
| 164 | "max_probability": 0 |
| 165 | } |
| 166 | }, |
| 167 | { |
| 168 | "pbit_map": "0b00100000", |
| 169 | "aes_encryption": "True", |
| 170 | "scheduling_policy": "StrictPriority", |
| 171 | "priority_q": 2, |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 172 | "weight": 0, |
Kailash | 38f62df | 2019-06-24 14:20:57 -0700 | [diff] [blame] | 173 | "discard_policy": "TailDrop", |
| 174 | "max_q_size": "auto", |
| 175 | "discard_config": { |
| 176 | "min_threshold": 0, |
| 177 | "max_threshold": 0, |
| 178 | "max_probability": 0 |
| 179 | } |
| 180 | }, |
| 181 | { |
| 182 | "pbit_map": "0b11000000", |
| 183 | "aes_encryption": "True", |
| 184 | "scheduling_policy": "StrictPriority", |
| 185 | "priority_q": 1, |
| 186 | "weight": 25, |
| 187 | "discard_policy": "TailDrop", |
Kailash | 5126dbc | 2019-06-24 09:44:30 -0700 | [diff] [blame] | 188 | "max_q_size": "auto", |
| 189 | "discard_config": { |
| 190 | "min_threshold": 0, |
| 191 | "max_threshold": 0, |
| 192 | "max_probability": 0 |
| 193 | } |
| 194 | } |
| 195 | ] |
| 196 | } |