blob: 419a51e2b64c5666e57be427a5b21c07bf68a446 [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
25topology_template:
26 node_templates:
27
28 service#att:
29 type: tosca.nodes.AttWorkflowDriverService
30 properties:
31 name: att-workflow-driver
32 must-exist: true
33
Andy Baviere21a5f52019-05-28 15:39:52 -070034{{- range $i, $junk := until (.Values.numOlts|int) }}
35
36 whitelist{{ $i }}:
Andy Bavier7a080492018-08-30 14:26:09 -070037 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
38 properties:
Andy Baviere21a5f52019-05-28 15:39:52 -070039{{- if $.Values.legacyPonsim }}
Andy Bavier7a080492018-08-30 14:26:09 -070040 serial_number: PSMO12345678
41 device_id: of:0000aabbccddeeff
Andy Baviere21a5f52019-05-28 15:39:52 -070042{{- else }}
43 serial_number: PSMO{{ printf "%04d" $i }}0000
44 device_id: {{ index $.Values.oltDpids $i }}
45{{- end }}
Andy Bavier7a080492018-08-30 14:26:09 -070046 pon_port_id: 1
47 requirements:
48 - owner:
49 node: service#att
50 relationship: tosca.relationships.BelongsToOne
Andy Baviere21a5f52019-05-28 15:39:52 -070051{{- end }}