X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwlaunchpad%2Fplugins%2Fyang%2Frw-pkg-mgmt.yang;fp=rwlaunchpad%2Fplugins%2Fyang%2Frw-pkg-mgmt.yang;h=5fbd621b6ece55752062a39affa95a70cdb26642;hb=ffd2636644e9e62b42ddcb1dbe2c4a6e77507a70;hp=de56e554b714c1e7bb5a159158277b8ea4636a7e;hpb=7295f64eb5dd9d75b1dd272567c99304b65a7d0a;p=osm%2FSO.git diff --git a/rwlaunchpad/plugins/yang/rw-pkg-mgmt.yang b/rwlaunchpad/plugins/yang/rw-pkg-mgmt.yang index de56e554..5fbd621b 100644 --- a/rwlaunchpad/plugins/yang/rw-pkg-mgmt.yang +++ b/rwlaunchpad/plugins/yang/rw-pkg-mgmt.yang @@ -182,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"; @@ -206,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"; @@ -221,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";