Pre-requisites to Instantiate VNF on Azure

The following pre-requisites are needed to run the vFW/vDNS instantiation using VID UI

  1. Create Customer in AAI
    Use the PUT /aai/v11/business/customers/customer/{{customer_id}}
    Request Body:

    {
    "global-customer-id": "{{customer_id}}",
    "subscriber-name": "{{customer_id}}",
    "subscriber-type": "INFRA",
    "service-subscriptions": {
    "service-subscription": [
    {
    "service-type": "INFRA"
    }
    ]
    }
    }

  2. Cloud Registration in AAI
    use the PUT request to save the Cloud details to AAI.
    PUT /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/{{cloud_owner}}/{{cloud_region_id}}
    Request Body: 

    {
    "cloud-owner": "{{cloud_owner}}",
    "cloud-region-id": "{{cloud_region_id}}",
    "cloud-type": "azure",
    "owner-defined-type": "owner-defined-type",
    "cloud-region-version": "1.0",
    "cloud-zone": "cloud zone",
    "complex-name": "complex name",
    "sriov-automation": false,
    "cloud-extra-info": "{{azure_subscription_id}}",
    "esr-system-info-list": {
    "esr-system-info": [
    {
    "esr-system-info-id": "82badd77-82b3-4d37-ab2e-fb258ae55611",
    "service-url": "http://10.247.134.140:5000/v3",
    "user-name": "{{azure_client_id}}",
    "password": "{{azure_client_secret}}",
    "system-type": "VIM",
    "ssl-insecure": true,
    "cloud-domain": "default",
    "default-tenant": "{{azure_document_id}}"
    }
    ]
    },
    "tenants":{
    "tenant":[{

    "tenant-id":"{{azure_document_id}}",
    "tenant-name":"vfw-demo",
    "relationship-list": {
    "relationship": [{
    "related-to": "service-subscription",
    "relationship-data": [{
    "relationship-key": "service-subscription.service-type",
    "relationship-value": "INFRA"
    },{
    "relationship-key": "customer.global-customer-id",
    "relationship-value": "{{customer_id}}"
    }]
    }]
    }
    }
    ]
    }
    }

  3. Create Complex in AAI
    Use the PUT request to save complex data in AAI
    PUT /aai/v11/cloud-infrastructure/complexes/complex/{{complex_name}}
    Request Body:

    {
    "physical-location-id": "{{complex_name}}",
    "complex-name": "{{complex_name}}",
    "physical-location-type": "cloud",
    "street1": "street3",
    "city": "eastus",
    "postal-code": "1234567",
    "country": "USA",
    "region": "North America"
    }

  4. Create Service in AAI
    Use the PUT request to create the service in AAI. You can refer to this page to create.

    1. go to the link https://www.uuidgenerator.net/ and pick the Version 4 UUID like: f3fe1523-09ec-4d91-91ae-60ef9a2dd050

    2. PUT https://master_ip:30233/aai/v11/service-design-and-creation/services/service/f3fe1523-09ec-4d91-91ae-60ef9a2dd050

       {
                  "service-id": "f3fe1523-09ec-4d91-91ae-60ef9a2dd050",
                  "service-description": "vDNS/vFW"
       }

    3. GET https://master_ip:30233/aai/v11/service-design-and-creation/services

  5. VNF Profile registration in SDNC

    1. Refer to the link here to add VNF profile in SDNC. VNF type will be the VF module name

  6. VID CURL requests to populate drop down for categories
    Use the below CURL requests after login to the VID container. The below requests will be populated during service instantiation.

    1. curl -X POST 'http://localhost:8080/vid/maintenance/category_parameter/lineOfBusiness' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type:application/json' -d '{"options":["Demonstration"]}'

    2. curl -X POST 'http://localhost:8080/vid/maintenance/category_parameter/platform' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type:application/json' -d '{"options":["Demonstration"]}'

    3. curl -X POST 'http://localhost:8080/vid/maintenance/category_parameter/project' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type:application/json' -d '{"options":["Demonstration"]}'

    4. curl -X POST 'http://localhost:8080/vid/maintenance/category_parameter/owningEntity' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type:application/json' -d '{"options":["Demonstration"]}'