blob: a6869ec1b90fa2540a5dd2a80a7df9702011cfff [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
31 kind: platform
32 rest_hostname: onos-fabric-ui
33 rest_port: 8181
34
35 service#fabric:
36 type: tosca.nodes.FabricService
37 properties:
38 name: fabric
39 kind: platform
40
41 service_dependency#onos-fabric_fabric:
42 type: tosca.nodes.ServiceDependency
43 properties:
44 connect_method: None
45 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