Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-819

Generic "containment-path" query

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: High High
    • Beijing Release
    • None
    • None

      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.

            rx2202 rx2202
            jimmydot jimmydot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: