blob: 1cb2b4f9ae4b1e4ad1d6ef6ed63d5599b10f240b [file] [log] [blame]
Suchitra Vemuric7962292019-02-07 20:33:45 -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 Vemuri80140812019-02-07 23:16:19 -080015# 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 Vemuric7962292019-02-07 20:33:45 -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
22description: Create a simulated OLT Device in VOLTHA
23topology_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 Vemuri80140812019-02-07 23:16:19 -080037 host: 10.192.20.206
Suchitra Vemuric7962292019-02-07 20:33:45 -080038 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
Kailash5126dbc2019-06-24 09:44:30 -070048
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",
58 "version": 1.0,
59 "num_gem_ports": 1,
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 },
79 "upstream_gem_port_attribute_list": [{
80 "pbit_map": "0b11000000",
81 "aes_encryption": "TRUE",
82 "scheduling_policy": "Strict-Priority",
83 "priority_q": 1,
84 "weight": 0,
85 "discard_policy": "Tail-Drop",
86 "max_q_size": "auto",
87 "discard_config": {
88 "min_threshold": 0,
89 "max_threshold": 0,
90 "max_probability": 0
91 }
92 }
93 ],
94 "downstream_gem_port_attribute_list": [{
95 "pbit_map": "0b11000000",
96 "aes_encryption": "TRUE",
97 "scheduling_policy": "Strict-Priority",
98 "priority_q": 1,
99 "weight": 0,
100 "discard_policy": "Tail-Drop",
101 "max_q_size": "auto",
102 "discard_config": {
103 "min_threshold": 0,
104 "max_threshold": 0,
105 "max_probability": 0
106 }
107 }
108 ]
109 }