1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright (c) 2017-2018 Intel, Inc.
5 ===============================
6 MultiCloud infra_workload API
7 ===============================
9 we have two purposes for this API:
11 #. Intergrate SO and Multicloud.
12 #. Generic API for SO to talk to different Multicloud plugins.
18 Currently HPA flavors are returned by OOF to SO and SO copies these flavors in
19 the Heat template before sending the Heat template to Multicloud. In Casablanca
20 instead of SO making changes in the Heat template the flavor information will be
21 provided to Multicloud and Multicloud will pass these as parameters to HEAT
23 The detail design refer to https://wiki.onap.org/display/DW/SO+Casablanca+HPA+Design
29 Add infrastructure workload API
30 -------------------------------
32 API URL: http://{msb IP}:{msb port}/api/multicloud /v1/{cloud-owner}/{cloud-region-id}/infra_workload
40 "generic-vnf-id":"<generic-vnf-id>",
41 "vf-module-id":"<vf-module-id>",
44 "template_type":"<heat/tosca/etc.>",
57 "type":"<flavor_directive>",
60 "attribute_name":"<name of attribute, such as flavor label>",
61 "attribute_value":"<value such as cloud specific flavor>"
72 "type":"<Name of directive>",
75 "attribute_name":"<name of attribute>",
76 "attribute_value":"<value>"
88 "template_type":"heat",
91 "disable_rollback":true,
95 "stack_name":"teststack",
97 "heat_template_version":"2013-05-23",
98 "description":"Simple template to test heat commands",
108 "type":"OS::Nova::Server",
110 "key_name":"heat_key",
114 "image":"40be8d1a-3eb9-40de-8abd-43237517384f",
115 "user_data":"#!/bin/bash -xv\necho \"hello world\" > /root/hello-world.txt\n"
127 #. Work with OOF team for oof_directive form.
128 #. Work with SDNC team for sdc_directive form.
133 #. Unit Tests with tox
134 #. CSIT Tests, the input/ouput of broker and each plugin see API design above.