Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-568

NodeType/EntityType capabilities import failing with Class Cast Exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Beijing Release
    • Beijing Release
    • SDC-JTOSCA
    • None
    • SDC Sprint 14

      As per JTOSCA implementation (_validateCapabilities and _createCapabilities) NodeType/EntityType are expecting capabilities only in LinkedHashMap format but the input is providing them in a list format.

      The unchecked cast is then failing with Class Cast Exception. The Yaml snippet resulting in this is as below;

      pcrf_oam_port_1:
      type: org.openecomp.resource.cp.v2.extNeutronCP
      properties:
      ip_requirements:
      get_input: port_pcrf_oam_port_1_ip_requirements
      security_groups:

      • get_input: pcrf_security_group_name
        network_role:
        get_input: port_pcrf_oam_port_1_network_role
        fixed_ips:
      • ip_address:
        get_input: pcrf_oam_net_ip
        subnetpoolid:
        get_input: port_pcrf_oam_port_1_subnetpoolid
        mac_requirements:
        get_input: port_pcrf_oam_port_1_mac_requirements
        exCP_naming:
        get_input: port_pcrf_oam_port_1_exCP_naming
        vlan_requirements:
        get_input: port_pcrf_oam_port_1_vlan_requirements
        network_role_tag:
        get_input: port_pcrf_oam_port_1_network_role_tag
        network:
        get_input: pcrf_oam_net_name
        order:
        get_input: port_pcrf_oam_port_1_order
        requirements:
      • binding:
        capability: tosca.capabilities.network.Bindable
        node: pcrf_server_oam
        relationship: tosca.relationships.network.BindsTo
        capabilities:
      • port_mirroring:
        properties:
        connection_point:
        nf_type: ''
        nfc_type: pcrf_server_oam
        network_role:
        get_input: port_pcrf_oam_port_1_network_role
        pps_capacity: ''

            talio talio
            priyanshua priyanshua
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified