blob: 6dd34a2f0d1219cc5fc3eb8d2fb197eff9aab688 [file] [log] [blame]
Andy Bavier7a080492018-08-30 14:26:09 -07001---
2# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @oss-service.yaml http://10.90.0.101:30007/run
17
18tosca_definitions_version: tosca_simple_yaml_1_0
19imports:
20 - custom_types/servicedependency.yaml
21 - custom_types/voltservice.yaml
22 - custom_types/attworkflowdriverwhitelistentry.yaml
23 - custom_types/attworkflowdriverservice.yaml
24description: Create an instance of the OSS Service and connect it to the vOLT Service
Sreeju7d7fc072019-06-13 12:03:00 -060025
Andy Bavier7a080492018-08-30 14:26:09 -070026topology_template:
27 node_templates:
28
29 service#att:
30 type: tosca.nodes.AttWorkflowDriverService
31 properties:
32 name: att-workflow-driver
33 must-exist: true
34
Sreeju7d7fc072019-06-13 12:03:00 -060035{{- $onucount := (.Values.numOnus|int) }}
Andy Baviere21a5f52019-05-28 15:39:52 -070036{{- range $i, $junk := until (.Values.numOlts|int) }}
Sreeju7d7fc072019-06-13 12:03:00 -060037{{- range $j, $junk1 := until ($onucount) }}
38 whitelist{{ $i }}-{{ $j }}:
Andy Bavier7a080492018-08-30 14:26:09 -070039 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
40 properties:
Andy Baviere21a5f52019-05-28 15:39:52 -070041{{- if $.Values.legacyPonsim }}
Andy Bavier7a080492018-08-30 14:26:09 -070042 serial_number: PSMO12345678
43 device_id: of:0000aabbccddeeff
Andy Baviere21a5f52019-05-28 15:39:52 -070044{{- else }}
Sreeju7d7fc072019-06-13 12:03:00 -060045 serial_number: PSMO{{ printf "%04d%04d" $i $j }}
Andy Baviere21a5f52019-05-28 15:39:52 -070046 device_id: {{ index $.Values.oltDpids $i }}
47{{- end }}
Andy Bavier7a080492018-08-30 14:26:09 -070048 pon_port_id: 1
49 requirements:
50 - owner:
51 node: service#att
52 relationship: tosca.relationships.BelongsToOne
Sreeju7d7fc072019-06-13 12:03:00 -060053{{- end }}
54{{- end }}