Matteo Scandolo | af3c994 | 2018-06-27 14:03:12 -0700 | [diff] [blame] | 1 | # 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 | |
| 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | description: Set up Fabric service and attach it to ONOS (note that onos-service needs to be loaded) |
| 19 | imports: |
| 20 | - custom_types/fabricservice.yaml |
| 21 | - custom_types/onosservice.yaml |
| 22 | - custom_types/servicedependency.yaml |
| 23 | |
| 24 | topology_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 Baker | afdf11d | 2018-08-16 15:47:55 -0700 | [diff] [blame] | 47 | node: service#fabric |
Matteo Scandolo | af3c994 | 2018-06-27 14:03:12 -0700 | [diff] [blame] | 48 | relationship: tosca.relationships.BelongsToOne |
| 49 | - provider_service: |
Scott Baker | afdf11d | 2018-08-16 15:47:55 -0700 | [diff] [blame] | 50 | node: service#ONOS_Fabric |
Matteo Scandolo | af3c994 | 2018-06-27 14:03:12 -0700 | [diff] [blame] | 51 | relationship: tosca.relationships.BelongsToOne |