blob: 76940e973d1eea952b08eb8d626e99cec334e7db [file] [log] [blame]
You Wanga069ccb2018-11-13 13:25:59 -08001# 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 Vemuri58ffc072019-06-21 15:03:34 -070015# 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 Wanga069ccb2018-11-13 13:25:59 -080016
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/oltdevice.yaml
20 - custom_types/onudevice.yaml
21 - custom_types/voltservice.yaml
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070022 - custom_types/technologyprofile.yaml
You Wanga069ccb2018-11-13 13:25:59 -080023description: Create a simulated OLT Device in VOLTHA
24topology_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 Baker970d5d52018-12-11 07:00:17 +000043 uplink: "65536"
You Wanga069ccb2018-11-13 13:25:59 -080044 nas_id: "NAS_ID"
45 requirements:
46 - volt_service:
47 node: service#volt
48 relationship: tosca.relationships.BelongsToOne
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070049
50 technologyProfile:
51 type: tosca.nodes.TechnologyProfile
52 properties:
53 profile_id: 64
54 technology: xgspon
55 profile_value: >
56 {
57 "name": "4QueueHybridProfileMap1",
Matteo Scandolod5256d72019-06-21 15:55:51 -070058 "profile_type": "XPON",
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070059 "version": 1.0,
60 "instance_control": {
61 "onu": "multi-instance",
62 "uni": "single-instance",
63 "num_gem_ports": 1,
Matteo Scandolod5256d72019-06-21 15:55:51 -070064 "max_gem_payload_size": "auto"
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070065 },
Matteo Scandolod5256d72019-06-21 15:55:51 -070066 "us_scheduler": {
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070067 "additional_bw": "auto",
68 "priority": 0,
69 "weight": 0,
70 "q_sched_policy": "hybrid"
71 },
Matteo Scandolod5256d72019-06-21 15:55:51 -070072 "ds_scheduler": {
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070073 "priority": 0,
74 "weight": 0,
75 "q_sched_policy": "hybrid"
76 },
Matteo Scandolod5256d72019-06-21 15:55:51 -070077 "upstream_gem_port_attribute_list": [{
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070078 "pbit_map": "0b11000000",
Matteo Scandolod5256d72019-06-21 15:55:51 -070079 "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
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070089 }
90 }
91 ],
Matteo Scandolod5256d72019-06-21 15:55:51 -070092 "downstream_gem_port_attribute_list": [{
Suchitra Vemuri58ffc072019-06-21 15:03:34 -070093 "pbit_map": "0b11000000",
Matteo Scandolod5256d72019-06-21 15:55:51 -070094 "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
Suchitra Vemuri58ffc072019-06-21 15:03:34 -0700104 }
105 }
106 ]
107 }