1 module o-ran-file-management {
\r
3 namespace "urn:o-ran:file-management:1.0";
\r
4 prefix "o-ran-file-mgmt";
\r
6 import ietf-crypto-types {
\r
11 organization "O-RAN Alliance";
\r
17 "This module defines the configuration and operations for handling upload.
\r
19 Copyright 2019 the O-RAN Alliance.
\r
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
\r
22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
\r
23 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
\r
24 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
\r
25 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
\r
26 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
\r
27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
\r
28 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
\r
29 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
\r
30 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
\r
31 POSSIBILITY OF SUCH DAMAGE.
\r
33 Redistribution and use in source and binary forms, with or without
\r
34 modification, are permitted provided that the following conditions are met:
\r
36 * Redistributions of source code must retain the above copyright notice,
\r
37 this list of conditions and the above disclaimer.
\r
38 * Redistributions in binary form must reproduce the above copyright notice,
\r
39 this list of conditions and the above disclaimer in the documentation
\r
40 and/or other materials provided with the distribution.
\r
41 * Neither the Members of the O-RAN Alliance nor the names of its
\r
42 contributors may be used to endorse or promote products derived from
\r
43 this software without specific prior written permission.";
\r
45 revision "2019-07-03" {
\r
49 1) backward compatible changes to correct sFTP Server Authentication .
\r
50 2) minor fixes according to lack of descriptions
\r
51 3) backward compatible changes to introduce groupings";
\r
53 reference "ORAN-WG4.M.0-v01.00";
\r
56 revision "2019-02-04" {
\r
60 1) imported model from xRAN
\r
61 2) changed namespace and reference from xran to o-ran";
\r
63 reference "ORAN-WG4.M.0-v01.00";
\r
66 grouping file-path-grouping {
\r
67 description "Complete logical path of the file to upload/download
\r
68 (no wildcard is allowed) ex : /o-RAN/log/syslog.1";
\r
70 leaf local-logical-file-path {
\r
73 description "Local logical file path";
\r
76 leaf remote-file-path {
\r
79 description "URI specifying the remote-file-path on O-DU/NMS.
\r
80 Format:sftp://<username>@<host>[:port]/path";
\r
84 grouping output-status-grouping {
\r
85 description "Status grouping";
\r
94 description "Operation status";
\r
97 leaf reject-reason {
\r
98 when "../status = 'FAILURE'";
\r
104 grouping credential-information {
\r
105 description "Type of authentication to use for SFTP upload or download.";
\r
106 choice credentials {
\r
108 container password {
\r
114 "password needed for O-RU authentication.";
\r
117 "password for O-RU authentication method in use";
\r
123 uses ct:public-key-grouping;
\r
125 "List of allowed algorithms with its keys";
\r
128 "Key for sFTP server authentication";
\r
132 container certificate {
\r
135 "certificate authentication method in use";
\r
142 grouping retrieve-input {
\r
143 description "Grouping for information retrieval RPC input";
\r
144 leaf logical-path {
\r
147 description "O-RAN unit of which the files are to be listed.
\r
148 ex : O-RAN/log, o-RAN/PM, O-RAN/transceiver";
\r
150 leaf file-name-filter {
\r
152 description "Filter which are to be applied on the result list of file names (* is allowed as wild-card).";
\r
156 grouping retrieve-output {
\r
157 description "Grouping for information retrieval RPC output";
\r
158 uses output-status-grouping;
\r
159 leaf-list file-list {
\r
160 when "../status = 'SUCCESS'";
\r
162 description "List of files in the unit with the filter applied.";
\r
169 description "File upload over SFTP from equipment to NETCONF client";
\r
171 uses file-path-grouping;
\r
172 uses credential-information;
\r
175 uses output-status-grouping;
\r
179 rpc retrieve-file-list {
\r
180 description "List all the files in the logical O-RAN unit (* is allowed as wild-card).";
\r
182 uses retrieve-input;
\r
186 uses retrieve-output;
\r
190 notification file-upload-notification {
\r
191 uses file-path-grouping;
\r
192 uses output-status-grouping;
\r
196 rpc file-download {
\r
198 "Management plane triggered to generate the download file of O-RU.";
\r
200 uses file-path-grouping;
\r
201 uses credential-information;
\r
204 uses output-status-grouping;
\r
208 notification file-download-event {
\r
209 uses file-path-grouping;
\r
210 uses output-status-grouping;
\r