blob: 7bb664e56d74c3cbcd66fd331564d448419bc646 [file] [log] [blame]
Matteo Scandolod4195ce2020-01-15 14:33:56 -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
Matteo Scandolod5a99682020-01-15 15:55:47 -080015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onf-p4-demo-pod-olt.yaml http://192.168.100.1:30007/run
Matteo Scandolod4195ce2020-01-15 14:33:56 -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
22 - custom_types/technologyprofile.yaml
23
24description: Creates OLT devices
25topology_template:
26 node_templates:
27
28 service#volt:
29 type: tosca.nodes.VOLTService
30 properties:
31 name: volt
32 must-exist: true
33
34 edgecore:
35 type: tosca.nodes.OLTDevice
36 properties:
37 name: EdgeCore OLT
38 device_type: openolt
Matteo Scandolob9568be2020-01-15 14:48:44 -080039 host: 192.168.100.112
Matteo Scandolod4195ce2020-01-15 14:33:56 -080040 port: 9191
Matteo Scandolo1d6b6022020-01-15 15:01:18 -080041 switch_datapath_id: of:0000000000000205
Matteo Scandolo57731fb2020-01-16 13:25:38 -080042 switch_port: "1"
Matteo Scandolod4195ce2020-01-15 14:33:56 -080043 outer_tpid: "0x8100"
44 uplink: "65536"
45 nas_id: "NAS_ID"
Matteo Scandolo1d6b6022020-01-15 15:01:18 -080046 serial_number: "EC1721000208"
Matteo Scandolod4195ce2020-01-15 14:33:56 -080047 requirements:
48 - volt_service:
49 node: service#volt
50 relationship: tosca.relationships.BelongsToOne
51
52 technologyProfile:
53 type: tosca.nodes.TechnologyProfile
54 properties:
55 profile_id: 64
56 technology: xgspon
57 profile_value: >
58 {
59 "name": "4QueueHybridProfileMap1",
60 "profile_type": "XPON",
61 "version": 1.0,
62 "num_gem_ports": 1,
63 "instance_control": {
64 "onu": "multi-instance",
65 "uni": "single-instance",
66 "max_gem_payload_size": "auto"
67 },
68 "us_scheduler": {
69 "additional_bw": "auto",
70 "direction": "UPSTREAM",
71 "priority": 0,
72 "weight": 0,
73 "q_sched_policy": "hybrid"
74 },
75 "ds_scheduler": {
76 "additional_bw": "auto",
77 "direction": "DOWNSTREAM",
78 "priority": 0,
79 "weight": 0,
80 "q_sched_policy": "hybrid"
81 },
82 "upstream_gem_port_attribute_list": [{
83 "pbit_map": "0b11111111",
84 "aes_encryption": "True",
85 "scheduling_policy": "StrictPriority",
86 "priority_q": 1,
87 "weight": 0,
88 "discard_policy": "TailDrop",
89 "max_q_size": "auto",
90 "discard_config": {
91 "min_threshold": 0,
92 "max_threshold": 0,
93 "max_probability": 0
94 }
95 }
96 ],
97 "downstream_gem_port_attribute_list": [{
98 "pbit_map": "0b11111111",
99 "aes_encryption": "True",
100 "scheduling_policy": "StrictPriority",
101 "priority_q": 1,
102 "weight": 0,
103 "discard_policy": "TailDrop",
104 "max_q_size": "auto",
105 "discard_config": {
106 "min_threshold": 0,
107 "max_threshold": 0,
108 "max_probability": 0
109 }
110 }
111 ]
112 }