-
Bug
-
Resolution: Done
-
High
-
Beijing Release
-
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: ''