When a Netconf mount is required for instances such as testing a VNF configuration action the below procedure will guide you.
Create the xml required to build the Netconf mount
Example of a Netconf mount xml (vtrafficgen.xml)
Submit the REST request to create the Netconf mount
Example curl command used to submit the REST request
Sample curl REST request submission
curl -v --noproxy '*' --user "admin":"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U" -d @vtrafficgen.xml -H "Accept: application/xml" -H "Content-type: application/xml" -X PUT --trace trace.out http://10.12.5.69:8282/restconf/config/network-topology:network-topology/topology/topology-netconf/node/9e1f35bf-bc36-4cab-ae9f-baf44bddd673
Verify Netconf mount submission
Verify Netconf mount was submitted
curl -v --noproxy '*' --user "admin":"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U" -d -H "Accept: application/xml" -H "Content-type: application/xml" -X GET http://10.12.5.69:8282/restconf/config/network-topology:network-topology/topology/topology-netconf/node/9e1f35bf-bc36-4cab-ae9f-baf44bddd673
Verify the Netconf mount was created and able to connect to the VNF
Test the Netconf mount
Sample Test Request of a vFW ModifyConfig via API Doc Explorer:
http://[Anyk8host]:30230/apidoc/explorer/index.html
{"input": { "common-request-header": { "service-request-id": "1" }, "config-payload": { "config-url": "5f517fd4-bf3d-43bc-8147-1b61776d7ded", "config-json": "{\"pg-streams\":{\"pg-stream\": [{ \"id\": \"fw_udp1\", \"is-enabled\": \"true\" }, { \"id\": \"fw_udp2\", \"is-enabled\": \"true\" }, { \"id\": \"fw_udp3\", \"is-enabled\": \"true\" }, { \"id\": \"fw_udp4\", \"is-enabled\": \"true\" }, { \"id\": \"fw_udp5\", \"is-enabled\": \"true\" }]}}" } } }