blob: 2c807c2cb877ae3b162393724d77375ef9c8af81 [file] [log] [blame]
Matteo Scandolo97d853b2018-08-29 16:22:08 -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 Scandolo77171952018-09-04 14:43:43 -070015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-olt.yaml http://10.90.0.101:30007/run
Matteo Scandolo97d853b2018-08-29 16:22:08 -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
Scott Baker133d0f32018-11-29 09:08:01 -080022 - custom_types/attworkflowdriverwhitelistentry.yaml
23 - custom_types/attworkflowdriverservice.yaml
24 - custom_types/rcordsubscriber.yaml
25 - custom_types/switch.yaml
26 - custom_types/switchport.yaml
Matteo Scandolo97d853b2018-08-29 16:22:08 -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
Scott Baker133d0f32018-11-29 09:08:01 -080037 # CIG
Matteo Scandolo97d853b2018-08-29 16:22:08 -070038 olt_device:
39 type: tosca.nodes.OLTDevice
40 properties:
Scott Baker133d0f32018-11-29 09:08:01 -080041 name: CIG
Matteo Scandolo97d853b2018-08-29 16:22:08 -070042 device_type: openolt
Scott Baker133d0f32018-11-29 09:08:01 -080043 host: 10.90.0.115
44 port: 10400
Matteo Scandolo97d853b2018-08-29 16:22:08 -070045 switch_datapath_id: of:0000000000000001
Scott Baker133d0f32018-11-29 09:08:01 -080046 switch_port: "4"
Matteo Scandolo97d853b2018-08-29 16:22:08 -070047 outer_tpid: "0x8100"
Matteo Scandolo77171952018-09-04 14:43:43 -070048 nas_id: "NAS_ID"
Matteo Scandolo97d853b2018-08-29 16:22:08 -070049 requirements:
50 - volt_service:
51 node: service#volt
52 relationship: tosca.relationships.BelongsToOne
Scott Baker133d0f32018-11-29 09:08:01 -080053
54 # Whitelist
55 service#att:
56 type: tosca.nodes.AttWorkflowDriverService
57 properties:
58 name: att-workflow-driver
59 must-exist: true
60
61 CIG:
62 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
63 properties:
64 serial_number: CIGG70606829
65 pon_port_id: 536870913
66 device_id: of:000000000a5a0073
67 requirements:
68 - owner:
69 node: service#att
70 relationship: tosca.relationships.BelongsToOne
71
72 # Pre-provision the subscriber
73 cig_subscriber_1:
74 type: tosca.nodes.RCORDSubscriber
75 properties:
76 name: Sub_CIGG70606829
77 status: pre-provisioned
78 c_tag: 444
79 s_tag: 444
80 onu_device: CIGG70606829
81 nas_port_id : "PON 1/1/03/1:1.1.1"
82 circuit_id: foo1
83 remote_id: bar1
84
85 switch#leaf_1:
86 type: tosca.nodes.Switch
87 properties:
88 name: AGG_SWITCH
89 must-exist: true
90
91 port#cig_olt_port:
92 type: tosca.nodes.SwitchPort
93 properties:
94 portId: 4
95 host_learning: false
96 requirements:
97 - switch:
98 node: switch#leaf_1
99 relationship: tosca.relationships.BelongsToOne