Versions Compared

Key

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

...

Interfaces

  1. NST selection Request (from SO)
    1. Input: Service profiler parameters.

      {

      "requestInfo":{

      "transactionId":"c86b3019-39f4-4cd3-b847-b22afe9f36dc",

      "requestId":"c86b3019-39f4-4cd3-b847-b22afe9f36dc",

      "sourceId":"so",

      "timeout":600,

      "callbackUrl":"http://0.0.0.0:9000/callback/"

      },

      "serviceProfile":{

      "serviceProfileParameters":{

      "latency":20,

      "areaTrafficCapDL" : 10000,

      "coverageAreaTAList" : "India"
      }

      }

      }

  2. Fetch Optimization policies
    1. vnfPolicy - it will identify the inventoryProvider and inventoryType - Forms demand policy.
    2. Attribute policy - for storing the serviceprofileparameters and its value as attribute - value pair- Constraint policy.
    3. QueryPolicy -  Its used to query the serviceprofileparameters from the input so that it can be added as a value to the attribute.
  3. NST selection request - HAS 
    1. Demand: NST
    2. Constraint: Attribute policy for matching whether nst templates have these attributes.
  4. Fetch NST metadata from AAI
    1. Output: List of all NSTs metadata 
    2. Sample Request:

      curl --user AAI:AAI -X GET -H "X-FromAppId:AAI" -H "X-TransactionId:get_aai_subscr" -H "Accept:application/json" -H "Content-Type:application/json" -k "https://10.31.4.27:30233/aai/v21/service-design-and-creation/models?model-role=NST&depth=2"

    3. Sample Response: 

      Code Block
      {
         "model":[
            {
               "model-invariant-id":"50cd1233-dbec-4a46-a24f-46345a23635e",
               "model-type":"service",
               "model-role":"NST",
               "resource-version":"1607656942756",
               "model-vers":{
                  "model-ver":[
                     {
                        "model-version-id":"bac7e4cb-c27e-48a8-999e-87531f192a1d",
                        "model-name":"EmbbNST",
                        "model-version":"1.0",
                        "model-description":"TestNst",
                        "resource-version":"1607656942756",
                        "model-elements":{
                           "model-element":[
                              {
                                 "model-element-uuid":"23ecdf3f-f3fa-4715-8a86-65dc33c60cd2",
                                 "new-data-del-flag":"T",
                                 "cardinality":"unbounded",
                                 "resource-version":"1607656942756",
                                 "relationship-list":{
                                    "relationship":[
                                       {
                                          "related-to":"model-ver",
                                          "relationship-label":"org.onap.relationships.inventory.IsA",
                                          "related-link":"/aai/v21/service-design-and-creation/models/model/82194af1-3c2c-485a-8f44-420e22a9eaa4/model-vers/model-ver/46b92144-923a-4d20-b85a-3cbd847668a9",
                                          "relationship-data":[
                                             {
                                                "relationship-key":"model.model-invariant-id",
                                                "relationship-value":"82194af1-3c2c-485a-8f44-420e22a9eaa4"
                                             },
                                             {
                                                "relationship-key":"model-ver.model-version-id",
                                                "relationship-value":"46b92144-923a-4d20-b85a-3cbd847668a9"
                                             }
                                          ],
                                          "related-to-property":[
                                             {
                                                "property-key":"model-ver.model-name",
                                                "property-value":"service-instance"
                                             }
                                          ]
                                       }
                                    ]
                                 }
                              }
                           ]
                        }
                     }
                  ]
               }
            }
         ]
      }


  5. Fetch NST candidate from SDC
    1. Input: NST metadata
    2. Sample Request: 

      curl -X GET -H "authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=" -H "x-ecomp-instanceid:AAI" -H 'Accept:application/octet-stream' -k https://10.31.4.27:30204/sdc/v1/catalog/services/bac7e4cb-c27e-48a8-999e-87531f192a1d/toscaModel

    3. Output: List of NST candidates matching the metadata
    4. Sample Response: 
      View file
      namenst.csar
      height250
  6. Run optimization  - taking attribute constraint, the candidates are filtered out matching the attributes.
  7. Solution list is formed
    1. Solution List. Solution object have nst candidates matching the input service profile params.

...