In VNFD mapping not happening when passing as parameter

Asked by Ukesh

In a VNFD template where the template is parameterized according to:

inputs:
  connection-type:
    type string

and

CP2:
  properties:
    type: {get_input : connection-type}

The same template without the parameter looks like:

CP2:
  properties:
    type: sriov

When deploying, template without parameter is working fine, as it is converting 'sriov' to 'direct' in the heat template. And it is not happening when we pass through the parameter.

Is it ok to change the code, such that when value given through parameter convert it to direct value for type in the heat template ?

Ex:
current code will convert the parameterized vnfd to below like heat template,

parameters:
  connection-type: {default: direct, description: Type of traffic network connections, type: string}
...
resources:
  vPRE_int_cp:
    properties:
      binding:vnic_type: {get_param: connection-type}

my proposal is as below,
resources:
  vPRE_int_cp:
    properties:
      binding:vnic_type: direct

Question information

Language:
English Edit question
Status:
Open
For:
tacker Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

Can you help with this problem?

Provide an answer of your own, or ask Ukesh for more information if necessary.

To post a message you must log in.