blob: 1af0eb248e52b9660c0994d55529a04d0622d9c1 [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
34 whitelist:
35 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
36 properties:
37 serial_number: PSMO12345678
38 device_id: of:0000aabbccddeeff
39 pon_port_id: 1
40 requirements:
41 - owner:
42 node: service#att
43 relationship: tosca.relationships.BelongsToOne