Versions Compared

Key

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

...

Code Block
titlevDNS DCAE Control Loop Event - Enriched A&AI
linenumberstrue
collapsetrue
{
                "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
                "policyVersion": "1.0.0.5",
                "policyName": "vLoadBalancer",
                "policyScope": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop",
                "target_type": "VM",
                "AAI": {
                    "vserver.vserver-name": "dfw1lb01lb01"
# TODO - add in the enriched A&AI
                },
                "closedLoopAlarmStart": 1484677482204798,
                "closedLoopEventStatus": "ONSET",
                "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
                "version": "1.0.2",
                "target": "vserver.vserver-name",
                "requestID": "97964e10-686e-4790-8c45-bdfa61df770f",
                "from": "DCAE"
}

A&AI API Interaction

Code Block
titlevDNS - A&AI vserver named query
linenumberstrue
collapsetrue
#PLD find the vserver version 


https://{aai}/aai/search/named-query

{
  "query-parameters": {
    "named-query": {
      "named-query-uuid": "4ff56a54-9e3f-46b7-a337-07a1d3c6b469"
    }
  },
  "instance-filters": {
    "instance-filter": [
      {
        "vserver": {
          "vserver-name": "vserver-71c978fb-29b8-437d-80e6-acf3a3a91e69"
        }
      }
    ]
  }
}

TODO update with output containing valid VF Modules (other than "dummy")

Code Block
titlevDNS - A&AI vserver named query response
linenumberstrue
collapsetrue
{
  "inventory-response-item": [
    {
      "vserver": {
        "vserver-id": "6ed3642c-f7a1-4a7c-9290-3d51fe1531eb",
        "vserver-name": "zdfw1lb01lb02",
        "vserver-name2": "zdfw1lb01lb02",
        "prov-status": "ACTIVE",
        "vserver-selflink": "http://10.12.25.2:8774/v2.1/41d6d38489bd40b09ea8a6b6b852dcbd/servers/6ed3642c-f7a1-4a7c-9290-3d51fe1531eb",
        "in-maint": false,
        "is-closed-loop-disabled": false,
        "resource-version": "1510606403522"
      },
      "extra-properties": {
        "extra-property": []
      },
      "inventory-response-items": {
        "inventory-response-item": [
          {
            "model-name": "vLoadBalancer",
            "generic-vnf": {
              "vnf-id": "db373a8d-f7be-4d02-8ac8-6ca4c305d144",
              "vnf-name": "Vfmodule_vLB1113",
              "vnf-type": "vLoadBalancer-1106/vLoadBalancer 0",
              "service-id": "66f157fc-4148-4880-95f5-e120677e98d1",
              "prov-status": "PREPROV",
              "in-maint": false,
              "is-closed-loop-disabled": false,
              "resource-version": "1510604011851",
              "model-invariant-id": "cee050ed-92a5-494f-ab04-234307a846dc",
              "model-version-id": "fd65becc-6b2c-4fe8-ace9-cc29db9a3da2"
            },
            "extra-properties": {
              "extra-property": [
                {
                  "property-name": "model-ver.model-version-id",
                  "property-value": "fd65becc-6b2c-4fe8-ace9-cc29db9a3da2"
                },
                {
                  "property-name": "model-ver.model-name",
                  "property-value": "vLoadBalancer"
                },
                {
                  "property-name": "model.model-type",
                  "property-value": "resource"
                },
                {
                  "property-name": "model.model-invariant-id",
                  "property-value": "cee050ed-92a5-494f-ab04-234307a846dc"
                },
                {
                  "property-name": "model-ver.model-version",
                  "property-value": "1.0"
                }
              ]
            },
            "inventory-response-items": {
              "inventory-response-item": [
                {
                  "model-name": "vLoadBalancer-1106",
                  "service-instance": {
                    "service-instance-id": "3b12f31f-8f2d-4f5c-b875-61ff1194b941",
                    "service-instance-name": "vLoadBalancer-1113",
                    "resource-version": "1510603936425",
                    "model-invariant-id": "1321d60d-f7ff-4300-96c2-6bf0b3268b7a",
                    "model-version-id": "732d4692-4b97-46f9-a996-0b3339e88c50"
                  },
                  "extra-properties": {
                    "extra-property": [
                      {
                        "property-name": "model-ver.model-version-id",
                        "property-value": "732d4692-4b97-46f9-a996-0b3339e88c50"
                      },
                      {
                        "property-name": "model-ver.model-name",
                        "property-value": "vLoadBalancer-1106"
                      },
                      {
                        "property-name": "model.model-type",
                        "property-value": "service"
                      },
                      {
                        "property-name": "model.model-invariant-id",
                        "property-value": "1321d60d-f7ff-4300-96c2-6bf0b3268b7a"
                      },
                      {
                        "property-name": "model-ver.model-version",
                        "property-value": "1.0"
                      }
                    ]
                  }
                },
                {
                  "model-name": "Vloadbalancer..base_vlb..module-0",
                  "vf-module": {
                    "vf-module-id": "e6b3e3eb-34e1-4c00-b8c1-2a4fbe479b12",
                    "vf-module-name": "Vfmodule_vLB1113-1",
                    "heat-stack-id": "Vfmodule_vLB1113-1/3dd6d900-772f-4fcc-a0cb-e250ab2bb4db",
                    "orchestration-status": "active",
                    "is-base-vf-module": true,
                    "resource-version": "1510604612557",
                    "model-invariant-id": "6d760188-9a24-451a-b05b-e08b86cb94f2",
                    "model-version-id": "93facad9-55f2-4fe0-9574-814c2bc2d071"
                  },
                  "extra-properties": {
                    "extra-property": [
                      {
                        "property-name": "model-ver.model-version-id",
                        "property-value": "93facad9-55f2-4fe0-9574-814c2bc2d071"
                      },
                      {
                        "property-name": "model-ver.model-name",
                        "property-value": "Vloadbalancer..base_vlb..module-0"
                      },
                      {
                        "property-name": "model.model-type",
                        "property-value": "resource"
                      },
                      {
                        "property-name": "model.model-invariant-id",
                        "property-value": "6d760188-9a24-451a-b05b-e08b86cb94f2"
                      },
                      {
                        "property-name": "model-ver.model-version",
                        "property-value": "1"
                      }
                    ]
                  }
                },
                {
                  "model-name": "Vloadbalancer..dnsscaling..module-1",
                  "vf-module": {
                    "vf-module-id": "dummy_db373a8d-f7be-4d02-8ac8-6ca4c305d144",
                    "vf-module-name": "dummy_db373a8d-f7be-4d02-8ac8-6ca4c305d144",
                    "is-base-vf-module": false,
                    "resource-version": "1510610079687",
                    "model-invariant-id": "356a1cff-71f2-4086-9980-a2927ce11c1c",
                    "model-version-id": "6b93d804-cfc8-4be3-92cc-9336d135859a"
                  },
                  "extra-properties": {
                    "extra-property": [
                      {
                        "property-name": "model-ver.model-version-id",
                        "property-value": "6b93d804-cfc8-4be3-92cc-9336d135859a"
                      },
                      {
                        "property-name": "model-ver.model-name",
                        "property-value": "Vloadbalancer..dnsscaling..module-1"
                      },
                      {
                        "property-name": "model.model-type",
                        "property-value": "resource"
                      },
                      {
                        "property-name": "model.model-invariant-id",
                        "property-value": "356a1cff-71f2-4086-9980-a2927ce11c1c"
                      },
                      {
                        "property-name": "model-ver.model-version",
                        "property-value": "1"
                      }
                    ]
                  }
                },
                {
                  "model-name": "Vloadbalancer..dnsscaling..module-1",
                  "vf-module": {
                    "vf-module-id": "my_module_db373a8d-f7be-4d02-8ac8-6ca4c305d144",
                    "vf-module-name": "my_module_1",
                    "is-base-vf-module": false,
                    "resource-version": "1510610079687",
                    "model-invariant-id": "356a1cff-71f2-4086-9980-a2927ce11c1c",
                    "model-version-id": "6b93d804-cfc8-4be3-92cc-9336d135859a"
                  },
                  "extra-properties": {
                    "extra-property": [
                      {
                        "property-name": "model-ver.model-version-id",
                        "property-value": "6b93d804-cfc8-4be3-92cc-9336d135859a"
                      },
                      {
                        "property-name": "model-ver.model-name",
                        "property-value": "Vloadbalancer..dnsscaling..module-1"
                      },
                      {
                        "property-name": "model.model-type",
                        "property-value": "resource"
                      },
                      {
                        "property-name": "model.model-invariant-id",
                        "property-value": "356a1cff-71f2-4086-9980-a2927ce11c1c"
                      },
                      {
                        "property-name": "model-ver.model-version",
                        "property-value": "1"
                      }
                    ]
                  }
                },
                {
                  "model-name": "Vloadbalancer..dnsscaling..module-1",
                  "vf-module": {
                    "vf-module-id": "my_module_db373a8d-f7be-4d02-8ac8-6ca4c305d144",
                    "vf-module-name": "my_module_2",
                    "is-base-vf-module": false,
                    "resource-version": "1510610079687",
                    "model-invariant-id": "356a1cff-71f2-4086-9980-a2927ce11c1c",
                    "model-version-id": "6b93d804-cfc8-4be3-92cc-9336d135859a"
                  },
                  "extra-properties": {
                    "extra-property": [
                      {
                        "property-name": "model-ver.model-version-id",
                        "property-value": "6b93d804-cfc8-4be3-92cc-9336d135859a"
                      },
                      {
                        "property-name": "model-ver.model-name",
                        "property-value": "Vloadbalancer..dnsscaling..module-1"
                      },
                      {
                        "property-name": "model.model-type",
                        "property-value": "resource"
                      },
                      {
                        "property-name": "model.model-invariant-id",
                        "property-value": "356a1cff-71f2-4086-9980-a2927ce11c1c"
                      },
                      {
                        "property-name": "model-ver.model-version",
                        "property-value": "1"
                      }
                    ]
                  }
                }
              ]
            }
          },
          {
            "tenant": {
              "tenant-id": "41d6d38489bd40b09ea8a6b6b852dcbd",
              "tenant-name": "Integration-SB-00",
              "resource-version": "1509587770200"
            },
            "extra-properties": {
              "extra-property": []
            },
            "inventory-response-items": {
              "inventory-response-item": [
                {
                  "cloud-region": {
                    "cloud-owner": "CloudOwner",
                    "cloud-region-id": "RegionOne",
                    "cloud-region-version": "v1",
                    "resource-version": "1509587770092"
                  },
                  "extra-properties": {
                    "extra-property": []
                  }
                }
              ]
            }
          }
        ]
      }
    }
  ]
}

SO API Interaction

Code Block
titlevDNS - SO Request
linenumberstrue
collapsetrue
TODO - this is new work

...

Code Block
languagetext
titleCCVPN - Query 'input-parameters' for 'service-instance'
collapsetrue
URL: https://<AAI host>:<AAI port>/aai/v14/business/customers/customer/{global-custoner-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-instance-id={serviceId}
Method: GET
Request Body:
{
}
Response Body:
{
    "service-instance-id": "{service-instance-id}",
    "service-instance-name" : "instance name",
    "service-type": "some type",
    "service-role": "some role",
    "model-invariant-id": "model id",
    "model-version-id": "model version",
    "input-parameters:"request parameters",  // ... This is the service instance recreation input looked up by CL.
    "resource-version": "some version"
}
 
 
Example of response body:
{
    "service-instance-id": "176d9eba-1662-4289-8396-0097b50fd485",
    "service-type": "E2E Service",
    "service-role": "E2E Service",
    "model-invariant-id": "c22a9483-d2b6-49cc-b1f7-ef34c93572a1",
    "model-version-id": "71d0e396-e246-4c23-aa57-6da2043d6209",
    "input-parameters:".....;",             // ... This is the service instance recreation input looked up by CL.
    "resource-version": "1528975017336"
    "relationship-list": {
         "relationship": [
            {
            "related-to": "pnf",
            "related-link": "/aai/v11/network/pnfs/pnf/MME-0001",
            "relationship-data": [
                    {    
                    "relationship-key": "pnf.pnf-id",      
                    "relationship-value": "176d9eba-1662-4289-8396-0097b50fd466"
                    }
                ],
            "related-to-property": [
                    {
                    "property-key": "pnf.pnf-name",      
                    "property-value": "MME-0001"
                    }
                ]
            } 
        ]
    }
}


SO API Interaction