Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the data module, after fetching the data from AAI the candidate gets populated like this 

JSON Viewer
modeText
width475
height500
{
   "candidate_id":"1ac71fb8-ad43-4e16-9459-c3f372b8236d",
   "candidate_type":"service",
   "inventory_type":"service",
   "inventory_provider":"aai",
   "cost":"100",
   "cloud_region":{
      "location_id":"DLLSTX9A",
      "location_type":"azure",
      "cloud_owner":"att-aic",
      "cloud_region_version":"1.1"
   },
   "generic_vnf":{
      "host_id":"vnf_123456"
   },
   "complex":{
      "latitude":"32.897480",
      "longitude":"-97.040443",
      "city":"Dallas",
      "state":"TX",
      "country":"USA",
      "region":"US",
      "complex_name":"dalls_one",
      "physical_location_id":"DLLSTX9A"
   }
}

While returning to solver;

JSON Viewer
modeText
width475
height400
{
    "candidate_id": "1ac71fb8-ad43-4e16-9459-c3f372b8236d",
    "candidate_type": "service",
    "inventory_type": "service",
    "inventory_provider": "aai",
    "host_id": "vnf_123456",
    "cost": "100",
    "location_id": "DLLSTX9A",
    "location_type": "azure",
    "latitude": "32.897480",
    "longitude": "-97.040443",
    "city": "Dallas",
    "state": "TX",
    "country": "USA",
    "region": "US",
    "complex_name": "dalls_one",
    "cloud_owner": "att-aic",
    "cloud_region_version": "1.1",
    "physical_location_id": "DLLSTX9A"
}

...