...
View file |
---|
name | fgpsworkflow.pdf |
---|
height | 400 |
---|
|
Outgoing APIs
HAS must send this group (Anti-affinity in this example) definition to FGPS first so it can understand what Anti-affinity group will be requested in the followed placement request. This info is also extracted from policy.
Code Block |
---|
language | yml |
---|
title | Group API |
---|
|
parameters:
group_name_1:
type: string
description: First group name
group_type_1:
type: string
description: First group type
group_level_1:
type:string
description: First group level
resources:
group_1:
type: ONAP::FGPS::Group
properties:
name: { get_param: group_name_1 }
type: { get_param: group_type_1}
level: { get_param: group_level_1 } |
...
Code Block |
---|
|
tosca_definitions_version: tosca_simple_yaml_1_0_0
node_types:
policy.nodes.fgpsPolicy:
derived_from: policy.nodes.Root
properties:
policyScope:
type: list
description: scope where the policy is applicable
required: true
matchable: true
entry_schema:
type: string
policyType:
type: list
description: type of a policy
required: true
matchable: true
entry_schema:
type: string
consraints:
- valid_values:
- fgps
resources:
type: list
required: true
entry_schema:
type: string
identity:
type: string
required: true
groupFeatures:
type: list
required: true
entry_schema:
type:policy.data.groupFeatures_properties
data_types:
policy.data.groupFeatures_properties:
derived_from: tosca.nodes.Root
properties:
group-name:
type: string
required: true
type:
type: string
required: true
directives:
type: list
required: true
entry_schema:
type: policy.data.directives_properties
groupProperties:
type: list
required: true
entry_schema:
type: policy.data.groupProperties_properties
policy.data.directives_properties:
derived_from: tosca.nodes.Root
properties:
type:
type: string
attributes:
type: list
entry_schema:
type: policy.data.directives_attributes_properties
policy.data.directives_attributes_properties:
derived_from: tosca.nodes.Root
properties:
attribute_name:
type: string
attribute_value:
type: string
policy.data.groupProperties_properties:
derived_from: tosca.nodes.Root
properties:
group-name:
type: string
required: true
group-type:
type: string
required: true
mandatory:
type: string
required: true
level:
type: string
required: false
fgps-version:
type: string
required: true
directives:
type: list
required: true
entry_schema:
type: policy.data.directives_properties |
MultiCloud
JSON Viewer |
---|
|
{
"cloud-owner": "string",
"cloud-region-id": "string",
"availability-zones": [
{
"availability-zone-name": "string",
"vCPU": "int",
"Memory": "float",
"Storage": "int"
},
{
"availability-zone-name": "string //name of available zone",
"vCPU": "int, // number of cores for this AZ",
"Memory": "float, // size of memory, GB for this AZ",
"Storage": "int, //GB for this AZ"
}
]
} |
...