blob: d35803e661be1a7f2a71bc7f54bc80a21c4a9be5 [file] [log] [blame]
Matteo Scandoloaf3c9942018-06-27 14:03:12 -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
15# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @service.yaml http://192.168.99.100:30007/run
16
17tosca_definitions_version: tosca_simple_yaml_1_0
18description: Set up Fabric service and attach it to ONOS (note that onos-service needs to be loaded)
19imports:
20 - custom_types/fabricservice.yaml
21 - custom_types/onosservice.yaml
22 - custom_types/servicedependency.yaml
23
24topology_template:
25 node_templates:
26
27 service#ONOS_Fabric:
28 type: tosca.nodes.ONOSService
29 properties:
30 name: ONOS_Fabric
Scott Bakera3b3ff22019-01-23 11:25:18 -080031 kind: data
Matteo Scandoloaf3c9942018-06-27 14:03:12 -070032 rest_hostname: onos-fabric-ui
33 rest_port: 8181
34
35 service#fabric:
36 type: tosca.nodes.FabricService
37 properties:
38 name: fabric
Scott Bakera3b3ff22019-01-23 11:25:18 -080039 kind: data
Matteo Scandoloaf3c9942018-06-27 14:03:12 -070040
41 service_dependency#onos-fabric_fabric:
42 type: tosca.nodes.ServiceDependency
43 properties:
Scott Bakera3b3ff22019-01-23 11:25:18 -080044 connect_method: none
Matteo Scandoloaf3c9942018-06-27 14:03:12 -070045 requirements:
46 - subscriber_service:
Scott Bakerafdf11d2018-08-16 15:47:55 -070047 node: service#fabric
Matteo Scandoloaf3c9942018-06-27 14:03:12 -070048 relationship: tosca.relationships.BelongsToOne
49 - provider_service:
Scott Bakerafdf11d2018-08-16 15:47:55 -070050 node: service#ONOS_Fabric
Matteo Scandoloaf3c9942018-06-27 14:03:12 -070051 relationship: tosca.relationships.BelongsToOne