blob: f7f64b416dbb6f776e24af138892e532cb525594 [file] [log] [blame]
Matteo Scandolo26f19ca2018-09-17 10:22:29 -07001# 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 Scandolo768d9d12018-09-18 15:21:24 -070015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-shad.yaml http://10.90.0.101:30007/run
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070016
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/oltdevice.yaml
20 - custom_types/onudevice.yaml
21 - custom_types/voltservice.yaml
Matteo Scandolo209c1862018-09-17 15:08:44 -070022 - custom_types/rcordsubscriber.yaml
23 - custom_types/attworkflowdriverwhitelistentry.yaml
24 - custom_types/attworkflowdriverservice.yaml
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070025description: Create a simulated OLT Device in VOLTHA
26topology_template:
27 node_templates:
28
29 service#volt:
30 type: tosca.nodes.VOLTService
31 properties:
32 name: volt
33 must-exist: true
34
35 # OLT ------------------------------------------------
36 olt_device:
37 type: tosca.nodes.OLTDevice
38 properties:
Matteo Scandolo209c1862018-09-17 15:08:44 -070039 name: SHAD OLT
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070040 device_type: openolt
Matteo Scandolo1760e9b2018-10-08 10:17:51 -070041 host: 10.90.0.122
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070042 port: 9191
43 switch_datapath_id: of:0000000000000001
Matteo Scandolo209c1862018-09-17 15:08:44 -070044 switch_port: "2"
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070045 outer_tpid: "0x8100"
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070046 nas_id: "NAS_ID"
47 requirements:
48 - volt_service:
49 node: service#volt
50 relationship: tosca.relationships.BelongsToOne
51
52 # Whitelist ------------------------------------------------
Matteo Scandolo209c1862018-09-17 15:08:44 -070053 service#att:
54 type: tosca.nodes.AttWorkflowDriverService
55 properties:
56 name: att-workflow-driver
57 must-exist: true
58
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070059 ALPHe3d1cfe3:
60 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
61 properties:
62 serial_number: ALPHe3d1cfe3
63 pon_port_id: 536870912
64 device_id: of:000000000a5a0097
65 requirements:
66 - owner:
67 node: service#att
68 relationship: tosca.relationships.BelongsToOne
69
70 ISKT71E80080:
71 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
72 properties:
73 serial_number: ISKT71E80080
74 pon_port_id: 536870912
75 device_id: of:000000000a5a0097
76 requirements:
77 - owner:
78 node: service#att
79 relationship: tosca.relationships.BelongsToOne
80
81 # Subscriber ------------------------------------------------
82 shad_1:
83 type: tosca.nodes.RCORDSubscriber
84 properties:
85 name: Sub_ALPHe3d1cfe3
86 status: pre-provisioned
Matteo Scandolo209c1862018-09-17 15:08:44 -070087 c_tag: 115
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070088 s_tag: 222
89 onu_device: ALPHe3d1cfe3
90 nas_port_id : "PON 1/1/03/1:1.1.1"
91 circuit_id: foo1
92 remote_id: bar1
93
94 shad_2:
95 type: tosca.nodes.RCORDSubscriber
96 properties:
97 name: Sub_ISKT71E80080
98 status: pre-provisioned
99 c_tag: 222
100 s_tag: 222
Matteo Scandolo209c1862018-09-17 15:08:44 -0700101 onu_device: ISKT71e80080
Matteo Scandolo26f19ca2018-09-17 10:22:29 -0700102 nas_port_id : "PON 1/1/04/1:1.1.1"
103 circuit_id: foo2
104 remote_id: bar2