X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwlaunchpad%2Fplugins%2Fyang%2Frw-pkg-mgmt.yang;h=5fbd621b6ece55752062a39affa95a70cdb26642;hb=ffd2636644e9e62b42ddcb1dbe2c4a6e77507a70;hp=8370c1b96f47c87f4f760de5aa5a3278bb637988;hpb=176e6d8f11f444598b58c7fff06052892c170d1f;p=osm%2FSO.git diff --git a/rwlaunchpad/plugins/yang/rw-pkg-mgmt.yang b/rwlaunchpad/plugins/yang/rw-pkg-mgmt.yang index 8370c1b9..5fbd621b 100644 --- a/rwlaunchpad/plugins/yang/rw-pkg-mgmt.yang +++ b/rwlaunchpad/plugins/yang/rw-pkg-mgmt.yang @@ -53,6 +53,13 @@ module rw-pkg-mgmt prefix "manotypes"; } + import rw-vnfd { + prefix "rwvnfd"; + } + import rw-nsd { + prefix "rwnsd"; + } + revision 2016-06-01 { description "Initial revision."; @@ -175,6 +182,14 @@ module rw-pkg-mgmt } } + grouping copy-task-status { + leaf status { + description "The status of the copy task"; + type task-status; + default QUEUED; + } + } + container download-jobs { rwpb:msg-new DownloadJobs; description "Download jobs"; @@ -199,6 +214,24 @@ module rw-pkg-mgmt } } + container copy-jobs { + rwpb:msg-new CopyJobs; + description "Copy jobs"; + config false; + + list job { + rwpb:msg-new CopyJob; + key "transaction-id"; + + leaf transaction-id { + description "Unique UUID"; + type string; + } + + uses copy-task-status; + } + } + rpc get-package-endpoint { description "Retrieves the endpoint for the descriptor"; @@ -214,6 +247,28 @@ module rw-pkg-mgmt } } + rpc package-copy { + description "Copies the package specified in input and returns the copied package id"; + + input { + uses package-identifer; + + leaf package-name { + description "Name of destination package"; + type string; + } + } + + output { + leaf transaction-id { + description "Valid ID to track the status of the task"; + type string; + } + + uses package-identifer; + } + } + rpc get-package-schema { description "Retrieves the schema for the package type"; @@ -340,4 +395,4 @@ module rw-pkg-mgmt } } -} \ No newline at end of file +}