| tosca_definitions_version: tosca_simple_yaml_1_0 |
| description: generate fabric configuration |
| type: tosca.nodes.ONOSService |
| view_url: /admin/onos/onosservice/\$id$/ |
| rest_hostname: onos-fabric |
| replaces: service_ONOS_Fabric |
| rest_onos/v1/network/configuration/: { get_artifact: [ SELF, fabric_network_cfg_json, LOCAL_FILE ] } |
| fabric_network_cfg_json: /root/setup/network-cfg-quickstart.json |
| type: tosca.nodes.FabricService |
| view_url: /admin/fabric/fabricservice/\$id\$/ |
| NODES=$( bash -c "source $SETUPDIR/admin-openrc.sh ; nova host-list" |grep compute|awk '{print $2}' ) |
| # Fabric location field for node $NODE |
| value: of:0000000000000001/1 |
| relationship: tosca.relationships.TagsObject |
| node: service#ONOS_Fabric |
| relationship: tosca.relationships.MemberOfService |
| type: tosca.nodes.ONOSApp |
| node: service#ONOS_Fabric |
| relationship: tosca.relationships.TenantOfService |
| relationship: tosca.relationships.UsedByService |
| dependencies: org.onosproject.drivers, org.onosproject.openflow-base, org.onosproject.netcfghostprovider, org.onosproject.netcfglinksprovider, org.onosproject.segmentrouting, org.onosproject.vrouter, org.onosproject.hostprovider |