You can customize a VDU in your Network Function by adding Cloud-init scripts. You can also provide a VMware Integrated OpenStack key to the VDU.

Add the Cloud-init script and the key by editing the NFD.yaml file. Perform the following steps:

Procedure

  1. Log in to the VMware Telco Cloud Automation web interface.
  2. Go to Catalog > Network Function.
  3. Select the desired Network Function, click the menu, and click Edit.
  4. Click the Resources tab and click Edit (pencil icon) against NFD.yaml.
  5. Under the VDU properties, update the values of key_name and user-data under the boot_data property.

Example: VDU with Key and Cloud-init Script

   vdu1:
      type: tosca.nodes.nfv.Vdu.Compute.vdu1
      properties:
        name: vdu1
        description: vdu1
        vdu_profile:
          min_number_of_instances: 1
          max_number_of_instances: 1
        sw_image_data:
          name: photon-curl
          version: '1'
          checksum:
            algorithm: sha-256
            hash: hash
          container_format: bare
          disk_format: qcow2
          min_disk: 4 GiB
          size: 4 GiB
        boot_data:
          content_or_file_data:
            data:
              key_name: xkey
              user-data: |
                #!/bin/bash
                #this is a test
                touch /tmp/abc.log