Versions Compared

Key

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

...

  1. Create VNF package record  in catalog DB

    Code Block
    titleCreate VNF Package Record
    curl -X POST \
      http://172.30.3.104:30280/api/vnfpkgm/v1/vnf_packages \
      -H 'Postman-Token: f9c45dea-b7bb-4acd-89e1-b9b1c3d70d8a' \
      -H 'accept: application/json' \
      -H 'cache-control: no-cache' \
      -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
      -F 'userDefinedData= "key2": "value2"'

    Note:  

    a. 172.30.3.104:30280 is the node IP and exposed port where the msb-iag pod is located. 

    b. userDefinedData is the key value pair which defined for the vnf package we created

  2. Upload VNF package to VF-C catalog

    Code Block
    titlePub/Sub Test
    curl -X PUT \
      http://172.30.3.104:30280/api/vnfpkgm/v1/vnf_packages/38037a12-a0d4-4aa4-ac50-cd6b05ce0b24/package_content \
      -H 'Postman-Token: 88ada218-86fd-4cd7-a06e-cc462f5df651' \
      -H 'cache-control: no-cache'
      -H 'accept: application/json' \
      -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
      -F 'file=@C:\ONAP\Integration\R3\vCPE\vnf-vsn.csar'

    Note?
    a.  38037a12-a0d4-4aa4-ac50-cd6b05ce0b24  is the vnf_pkg_id which we get from the first step
    b.  -F is used to specify the local vnf package file

  3. Create NS package record in catalog DB

    Code Block
    titlePub/Sub Test
    curl -X POST \
      http://172.30.3.104:30280/api/nsd/v1/ns_descriptors \
      -H 'Postman-Token: 71b11910-1708-471c-84bb-5b0dd8d214a2' \
      -H 'accept: application/json' \
      -H 'cache-control: no-cache' \
      -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
      -F 'userDefinedData= "key1": "value1"'

    Note:
    a. userDefinedData is the key value pair which defined for the ns package we created

  4. Upload NS package to VF-C catalog

    Code Block
    titlePub/Sub Test
    curl -X PUT \
      http://172.30.3.104:30280/api/nsd/v1/ns_descriptors/79ca81ec-10e0-44e4-bc85-ba968f345711/nsd_content \
      -H 'Postman-Token: f16e4a54-a514-4878-b307-9b80c630166e' \
      -H 'cache-control: no-cache'
      -H 'accept: application/json' \
      -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
      -F 'file=@C:\ONAP\Integration\R3\vCPE\ns.csar'

    Note:
    a.  -F is used to specify the local ns package file

NS Life Cycle Management

Currently VF-C GVNFM support NS create/Instantiate/terminate/delete/heal.

...