blob: 2ae457f34e8cd19ecdd3df672ae47ce90dafadfa [file] [log] [blame]
Luca Prete3940ea92018-09-25 13:53:37 -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 Scandoloc0372a12018-10-02 14:29:31 -070015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-cig.yaml http://10.90.0.101:30007/run
Luca Prete3940ea92018-09-25 13:53:37 -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 Scandoloc0372a12018-10-02 14:29:31 -070022 - custom_types/attworkflowdriverwhitelistentry.yaml
23 - custom_types/attworkflowdriverservice.yaml
24 - custom_types/rcordsubscriber.yaml
Luca Prete3940ea92018-09-25 13:53:37 -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
Luca Prete3940ea92018-09-25 13:53:37 -070035 # CIG
36 olt_device:
37 type: tosca.nodes.OLTDevice
38 properties:
39 name: CIG
40 device_type: openolt
41 host: 10.90.0.115
Matteo Scandoloc0372a12018-10-02 14:29:31 -070042 port: 10400
Luca Prete3940ea92018-09-25 13:53:37 -070043 switch_datapath_id: of:0000000000000001
44 switch_port: "3"
45 outer_tpid: "0x8100"
46 uplink: "65536"
47 nas_id: "NAS_ID"
48 requirements:
49 - volt_service:
50 node: service#volt
Matteo Scandoloc0372a12018-10-02 14:29:31 -070051 relationship: tosca.relationships.BelongsToOne
52
53 # Whitelist
54 service#att:
55 type: tosca.nodes.AttWorkflowDriverService
56 properties:
57 name: att-workflow-driver
58 must-exist: true
59
60 CIG:
61 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
62 properties:
63 serial_number: CIGG70606829
64 pon_port_id: 536870913
65 device_id: of:000000000a5a0073
66 requirements:
67 - owner:
68 node: service#att
69 relationship: tosca.relationships.BelongsToOne
70
71 # Pre-provision the subscriber
72 cig_subscriber_1:
73 type: tosca.nodes.RCORDSubscriber
74 properties:
75 name: Sub_CIGG70606829
76 status: pre-provisioned
77 c_tag: 111
78 s_tag: 444
79 onu_device: CIGG70606829
80 nas_port_id : "PON 1/1/03/1:1.1.1"
81 circuit_id: foo1
82 remote_id: bar1