blob: 1e47e3d9d28ae89c285b510869adad95f06abd82 [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
Matteo Scandolo08c9c802018-10-12 10:00:03 -070025 - custom_types/switch.yaml
26 - custom_types/switchport.yaml
Luca Prete3940ea92018-09-25 13:53:37 -070027description: Create a simulated OLT Device in VOLTHA
28topology_template:
29 node_templates:
30
31 service#volt:
32 type: tosca.nodes.VOLTService
33 properties:
34 name: volt
35 must-exist: true
36
Luca Prete3940ea92018-09-25 13:53:37 -070037 # CIG
38 olt_device:
39 type: tosca.nodes.OLTDevice
40 properties:
41 name: CIG
42 device_type: openolt
43 host: 10.90.0.115
Matteo Scandoloc0372a12018-10-02 14:29:31 -070044 port: 10400
Luca Prete3940ea92018-09-25 13:53:37 -070045 switch_datapath_id: of:0000000000000001
Matteo Scandoloa70c6162018-10-10 15:25:50 -070046 switch_port: "4"
Luca Prete3940ea92018-09-25 13:53:37 -070047 outer_tpid: "0x8100"
48 uplink: "65536"
49 nas_id: "NAS_ID"
50 requirements:
51 - volt_service:
52 node: service#volt
Matteo Scandoloc0372a12018-10-02 14:29:31 -070053 relationship: tosca.relationships.BelongsToOne
54
55 # Whitelist
56 service#att:
57 type: tosca.nodes.AttWorkflowDriverService
58 properties:
59 name: att-workflow-driver
60 must-exist: true
61
62 CIG:
63 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
64 properties:
65 serial_number: CIGG70606829
66 pon_port_id: 536870913
67 device_id: of:000000000a5a0073
68 requirements:
69 - owner:
70 node: service#att
71 relationship: tosca.relationships.BelongsToOne
72
73 # Pre-provision the subscriber
74 cig_subscriber_1:
75 type: tosca.nodes.RCORDSubscriber
76 properties:
77 name: Sub_CIGG70606829
78 status: pre-provisioned
Matteo Scandolo9d21ae72018-10-09 20:09:29 -070079 c_tag: 444
Matteo Scandoloc0372a12018-10-02 14:29:31 -070080 s_tag: 444
81 onu_device: CIGG70606829
82 nas_port_id : "PON 1/1/03/1:1.1.1"
83 circuit_id: foo1
Matteo Scandolo08c9c802018-10-12 10:00:03 -070084 remote_id: bar1
85
86 switch#leaf_1:
87 type: tosca.nodes.Switch
88 properties:
89 name: AGG_SWITCH
90 must-exist: true
91
92 port#cig_olt_port:
93 type: tosca.nodes.SwitchPort
94 properties:
95 portId: 4
96 host_learning: false
97 requirements:
98 - switch:
99 node: switch#leaf_1
100 relationship: tosca.relationships.BelongsToOne