Topics

#sdnc How to access input Properties in DG parameter tags #sdnc


Zhuangyang Chen
 

Hi team,

I have some difficulties in using properties in DG.

SDNC debug log indicates:

14:55:27.627 DEBUG [qtp899197167-140] Setting property create-ipo-vte-link-input.controller-ipv4-address to 10.0.0.1
14:55:27.630 DEBUG [qtp899197167-140] Setting property create-ipo-vte-link-input.create-ipo-vte-link-payload.bandwidth to 10000000
14:55:27.634 DEBUG [qtp899197167-140] Setting property create-ipo-vte-link-input.create-ipo-vte-link-payload.src-node-id to 4ce029a8-9006-457c-86ea-f5038d9c339b
14:55:27.638 DEBUG [qtp899197167-140] Setting property create-ipo-vte-link-input.create-ipo-vte-link-payload.dst-node-id to ed6f053d-f1ea-42ea-b77a-0d380bc0973e

DG is deasigned as:

<execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + $tmp.restapiUrl`"/>

Here are two questions:
1. How to apply the controller IP into restapiUrl tag in DG? 

Maybe <parameter name="restapiUrl" value=" $prop.GENERIC-RESOURCE-API.createIpoVteLink.create-ipo-vte-link-input.controller-ipv4-address>?

2. How to apply the "create-ipo-vte-link-payload" as request body for send request? 

I found a string as "requestBody" in ccsdk/sli/plugins/restapi/Parameters

maybe <parameter name="requestBody" value="$prop.GENERIC-RESOURCE-API.createIpoVteLink.create-ipo-vte-link-input.create-ipo-vte-link-payload"/>?