-
Sub-task
-
Resolution: Done
-
Medium
-
None
-
None
- POST
{ “operation”: “create”, // Valid operations are: “create”, “read”, “update” and “delete”. // For update, replace and patch is distinguished by the HTTP method (PUT or PATCH). “dataType”: “<mimeType>”, // Indicates format for the embedded data. // Shall use MIME type syntax, e g “application/yang-data+json”. // required for create and update operations. Optional filter-data for read-operations “data”: { // Embedded data. Must be valid JSON object. <data> // required for create and update operations. Optional filter-data for read-operations }, “cmHandleProperties”: { // Additional properties for CM handle previously added by DMI plugin and stored in NCMP. <properties> } }
A/C
Update yaml to use uri
/dmi/v1/ch/<cmHandle>/data/ds/ncmp-datastore:passthrough-running/{resourceIdentifier}
Use the data in the request body (from the example above) to build a request for SDNC
POST request to SDNC
"/rests/operations/network-topology:network-topology/topology={topologyId}/node={nodeId}/yang-ext:mount/resourceIdentifier"
If SDNC returns a successful response return it to DMI Plugin
If the response is unsuccessful then wrap it in a dmi exception
Limitations - only a single value for resource identifier will work. Investigation needed for multiple slashes