IMPACTS
1) Include category/role in the model schema
This will enable us to query the models by their category (NST/NSST/CST) from AAI by OOF during NST selection.
(Frankfurt improvements - Reference to NST selection flow)
Impacted Modules in AAI
- aai-schema-schema - add role as part of the model schema
- aai-babel - Babel converts the TOSCA artifact to AAI's XML format(Babel artifact). So, fetch category from TOSCA artifact and add it to Babel artifact.
EXISTING MODEL
{
"model":[
{
"model-invariant-id":"string",
"model-type":"string",
"resource-version":"string",
"model-vers":[
{
"model-version-id":"string",
"model-name":"string",
"model-version":"string",
"distribution-status":"string",
"model-description":"string",
"resource-version":"string",
"orchestration-type":"string",
"model-elements":[
{
"model-element-uuid":"string",
"new-data-del-flag":"string",
"cardinality":"string",
"linkage-points":"string",
"resource-version":"string",
"model-elements":[
],
"model-constraints":[
],
"relationship-list":{
}
}
],
"metadata":[
],
"relationship-list":{
}
}
],
"relationship-list":{
}
}
]
}
NEW
{
"model":[
{
"model-invariant-id":"string",
"model-type":"string",
"role":"string",
"resource-version":"string",
"model-vers":[
{
"model-version-id":"string",
"model-name":"string",
"model-version":"string",
"distribution-status":"string",
"model-description":"string",
"resource-version":"string",
"orchestration-type":"string",
"model-elements":[
{
"model-element-uuid":"string",
"new-data-del-flag":"string",
"cardinality":"string",
"linkage-points":"string",
"resource-version":"string",
"model-elements":[
],
"model-constraints":[
],
"relationship-list":{
}
}
],
"metadata":[
],
"relationship-list":{
}
}
],
"relationship-list":{
}
}
]
}