blob: c94b5e108f1a95a09f7b1760348a1be36b9065e5 [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"
Scott Baker970d5d52018-12-11 07:00:17 +000048 uplink: "65536"
Matteo Scandolo77171952018-09-04 14:43:43 -070049 nas_id: "NAS_ID"
Matteo Scandolo97d853b2018-08-29 16:22:08 -070050 requirements:
51 - volt_service:
52 node: service#volt
53 relationship: tosca.relationships.BelongsToOne
Scott Baker133d0f32018-11-29 09:08:01 -080054
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
79 c_tag: 444
80 s_tag: 444
81 onu_device: CIGG70606829
82 nas_port_id : "PON 1/1/03/1:1.1.1"
83 circuit_id: foo1
84 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