-
Story
-
Resolution: Done
-
High
-
None
-
None
-
AAI Sprint 12
As an A&AI client, I need a generic query that allows me to find a given node's containing nodes (a.k.a., parents). This query should traverse the outbound "contains-other-v = IN) edges until no more are found and return the result using the path query format.
As an example, Intel is requesting this capability for the ONAP HPA use case. Multi-VIM discovers the hardware capabilities of the cloud infrastructure and stores them in A&AI under cloud-region > flavor > hpa-capability. Each hpa capability's uuid, version and HW architecture parameter can be repeated as separate objects under the containing cloud-region/flavor and are not considered unique. OOF (the ONAP SNIRO equivalent) will come to A&AI knowing what HPA capabilities it is looking for and needs to find out which cloud-regions (and flavors in those cloud-regions) support them. They would use a nodes endpoint call as the start node for a custom query; for example..
.../nodes/hpa-capabilities?hpa-id=
{id}&hpa-version=
{version}...
The query they would call would return each instance of an hpa-capability matching the starting query and the "parents" of that node (in this case flavor and cloud-region) in an object array.
1.
|
Add to aai-common query builder get parent step | Closed | rx2202 | |
2.
|
Add to traversal custom query to get parent path | Closed | rx2202 |