blob: 664505fed54e803376cc23d9c4fecdb4059a71ab [file] [log] [blame]
Zack Williams682450e2016-11-19 09:04:41 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3imports:
4 - custom_types/xos.yaml
5
6description: fabric configuration generated by platform-install
7
8
9topology_template:
10 node_templates:
11
12 service#ONOS_Fabric:
13 type: tosca.nodes.ONOSService
14 requirements:
15 properties:
16 kind: onos
17 view_url: /admin/onos/onosservice/$id$/
18 no_container: true
19 rest_hostname: onos-fabric
20 replaces: service_ONOS_Fabric
21 rest_onos/v1/network/configuration/: { get_artifact: [ SELF, fabric_network_cfg_json, LOCAL_FILE ] }
22 artifacts:
23 fabric_network_cfg_json: /root/setup/network-cfg-quickstart.json
24
25 service#fabric:
26 type: tosca.nodes.FabricService
27 properties:
28 view_url: /admin/fabric/fabricservice/$id$/
29 replaces: service_fabric
30
31 Fabric_ONOS_app:
32 type: tosca.nodes.ONOSApp
33 requirements:
34 - onos_tenant:
35 node: service#ONOS_Fabric
36 relationship: tosca.relationships.TenantOfService
37 - fabric_service:
38 node: service#fabric
39 relationship: tosca.relationships.UsedByService
40 properties:
41 dependencies: org.onosproject.drivers, org.onosproject.openflow-base, org.onosproject.netcfghostprovider, org.onosproject.netcfglinksprovider, org.onosproject.segmentrouting, org.onosproject.vrouter, org.onosproject.hostprovider
42
43{% for node in groups["compute"] %}
44 {{ node }}:
45 type: tosca.nodes.Node
46
47 # Fabric location field for node $NODE
48 {{ node }}_location_tag:
49 type: tosca.nodes.Tag
50 properties:
51 name: location
52 value: of:0000000000000001/1
53 requirements:
54 - target:
55 node: {{ node }}
56 relationship: tosca.relationships.TagsObject
57 - service:
58 node: service#ONOS_Fabric
59 relationship: tosca.relationships.MemberOfService
60
61{% endfor %}
62