Comment 1 for bug 1716755

Revision history for this message
Yan Xing'an (yanxingan) wrote :

I cannot reappear this bug:

$ tacker vnfd-create --vnfd-file vnfd1_bug_1716755.yaml vnfd1-bug-test
Deprecated: tacker command line is deprecated, will be deleted after Rocky is released.
Created a new vnfd:
+-----------------+--------------------------------------+
| Field | Value |
+-----------------+--------------------------------------+
| created_at | 2018-06-19 06:16:07.995711 |
| description | Demo example |
| id | 223b1a11-28fc-439d-a683-80aeab9b6bf9 |
| name | vnfd1-bug-test |
| service_types | vnfd |
| template_source | onboarded |
| tenant_id | a5346a4d3c464b4f8776ee2f4bfb86af |
| updated_at | |
+-----------------+--------------------------------------+
yanxa@yanxa-ubuntu:~/mytest$ cat vnfd1_bug_1716755.yaml
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0

description: Demo example

metadata:
  template_name: sample-tosca-vnfd

topology_template:
  node_templates:
    VDU1:
      type: tosca.nodes.nfv.VDU.Tacker
      properties:
        image: cirros-0.3.5-x86_64-disk
        flavor: cirros256
        availability_zone: nova
        mgmt_driver: noop
        config: |
          param0: key1
          param1: key2
        user_data: |
          #junos-config
          ## Last changed: 2017-09-04 16:07:32 UTC
          version 15.1X49-D100.6;
           system {
               root-authentication {
                   encrypted-password "abc";
               }
           }

    CP1:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        management: true
        order: 0
        anti_spoofing_protection: false
      requirements:
        - virtualLink:
            node: VL1
        - virtualBinding:
            node: VDU1

    VL1:
      type: tosca.nodes.nfv.VL
      properties:
        network_name: net_mgmt
        vendor: Tacker
yanxa@yanxa-ubuntu:~/mytest$