blob: ebf19aebd137223b3bf4f421b04cbe36cf0bc9fe [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"
46 uplink: "65536"
47 nas_id: "NAS_ID"
48 requirements:
49 - volt_service:
50 node: service#volt
51 relationship: tosca.relationships.BelongsToOne
52
53 # Whitelist ------------------------------------------------
Matteo Scandolo209c1862018-09-17 15:08:44 -070054 service#att:
55 type: tosca.nodes.AttWorkflowDriverService
56 properties:
57 name: att-workflow-driver
58 must-exist: true
59
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070060 ALPHe3d1cfe3:
61 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
62 properties:
63 serial_number: ALPHe3d1cfe3
64 pon_port_id: 536870912
65 device_id: of:000000000a5a0097
66 requirements:
67 - owner:
68 node: service#att
69 relationship: tosca.relationships.BelongsToOne
70
71 ISKT71E80080:
72 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
73 properties:
74 serial_number: ISKT71E80080
75 pon_port_id: 536870912
76 device_id: of:000000000a5a0097
77 requirements:
78 - owner:
79 node: service#att
80 relationship: tosca.relationships.BelongsToOne
81
82 # Subscriber ------------------------------------------------
83 shad_1:
84 type: tosca.nodes.RCORDSubscriber
85 properties:
86 name: Sub_ALPHe3d1cfe3
87 status: pre-provisioned
Matteo Scandolo209c1862018-09-17 15:08:44 -070088 c_tag: 115
Matteo Scandolo26f19ca2018-09-17 10:22:29 -070089 s_tag: 222
90 onu_device: ALPHe3d1cfe3
91 nas_port_id : "PON 1/1/03/1:1.1.1"
92 circuit_id: foo1
93 remote_id: bar1
94
95 shad_2:
96 type: tosca.nodes.RCORDSubscriber
97 properties:
98 name: Sub_ISKT71E80080
99 status: pre-provisioned
100 c_tag: 222
101 s_tag: 222
Matteo Scandolo209c1862018-09-17 15:08:44 -0700102 onu_device: ISKT71e80080
Matteo Scandolo26f19ca2018-09-17 10:22:29 -0700103 nas_port_id : "PON 1/1/04/1:1.1.1"
104 circuit_id: foo2
105 remote_id: bar2