blob: bc9aa6818f4d46a007674beb8b647d4ae6d617df [file] [log] [blame]
Jeff Groom34c28ce2018-04-26 19:42:18 -06001module ciena-waveserver-configuration {
2 namespace "urn:ciena:params:xml:ns:yang:ciena-ws:ciena-waveserver-configuration";
3 prefix configuration;
4
5 import ciena-waveserver-typedefs {
6 prefix cienawstypes;
7 }
8 import ciena-waveserver-system {
9 prefix system;
10 }
11
12 organization
13 "Ciena Corporation";
14 contact
15 "Web URL: http://www.ciena.com/
16 Postal: 7035 Ridge Road
17 Hanover, Maryland 21076
18 U.S.A.
19 Phone: +1 800-921-1144
20 Fax: +1 410-694-5750";
21 description
22 "This module defines configuration data for the Waveserver.";
23
24 revision 2017-08-24 {
25 description
26 "Waveserver Platform Data Model
27 Migrated from Waveserver Classic R1.4 YANG model.
28 Updated namespace to 'ciena-waveserver'.
29 Added 'include-default-settings' option to waveserver-configuration-save RPC (from WS 1.5).
30 Added 'include-default-settings' option to waveserver-configuration-backup RPC (from WS 1.5).
31 Remove 'max-elements' from the configuration-files/file-list.";
32 reference "";
33 }
34
35 container waveserver-configuration {
36 description
37 "Waveserver Configuration: configuration data and operational data.";
38 container configuration-files {
39 config false;
40 description
41 "List of saved configuration files on the Waveserver.";
42 leaf-list file-list {
43 type cienawstypes:string-maxl-254;
44 config false;
45 description
46 "The filename list for all the saved configuration files.";
47 }
48 }
49 container default-files {
50 description
51 "Waveserver Configuration: default configuration files.";
52 leaf save-filename {
53 type cienawstypes:string-maxl-254;
54 description
55 "The filename for the default save configuration file.";
56 }
57 leaf load-filename {
58 type cienawstypes:string-maxl-254;
59 description
60 "The filename for the default load configuration file.";
61 }
62 leaf backup-load-filename {
63 type cienawstypes:string-maxl-254;
64 description
65 "The filename for the backup load configuration file.";
66 }
67 }
68 }
69 rpc waveserver-configuration-save {
70 description
71 "Save configuration.";
72 input {
73 leaf filename {
74 type cienawstypes:string-maxl-254;
75 description
76 "The name of the configuration file.";
77 }
78 leaf strip-user-comments {
79 type boolean;
80 description
81 "Indicates whether to remove user comments when saving the configuration file.";
82 }
83 leaf include-default-settings {
84 type boolean;
85 description
86 "Indicates whether to include the default settings when saving the configuration file.";
87 }
88 }
89 output {
90 leaf return-code {
91 type uint32;
92 description
93 "return code: 0 is success; non-zero is failure";
94 }
95 leaf return-string {
96 type cienawstypes:string-maxl-254;
97 description
98 "Return code description";
99 }
100 }
101 }
102 rpc waveserver-configuration-backup {
103 description
104 "Backup configuration to the specified file.";
105 input {
106 leaf filename {
107 type cienawstypes:string-maxl-254;
108 mandatory true;
109 description
110 "The name of the backup configuration file.";
111 }
112 leaf strip-user-comments {
113 type boolean;
114 description
115 "Indicates whether to remove user comments when saving the backup configuration file.";
116 }
117 leaf include-default-settings {
118 type boolean;
119 description
120 "Indicates whether to include the default settings when saving the backup configuration file.";
121 }
122 }
123 output {
124 leaf return-code {
125 type uint32;
126 description
127 "return code: 0 is success; non-zero is failure";
128 }
129 leaf return-string {
130 type cienawstypes:string-maxl-254;
131 description
132 "Return code description";
133 }
134 }
135 }
136 rpc waveserver-configuration-install {
137 description
138 "Install configuration from specified file.";
139 input {
140 leaf filename {
141 type cienawstypes:string-maxl-254;
142 mandatory true;
143 description
144 "The name of the configuration file to install.";
145 }
146 uses system:server-settings-group;
147 }
148 output {
149 leaf return-code {
150 type uint32;
151 description
152 "return code: 0 is success; non-zero is failure";
153 }
154 leaf return-string {
155 type cienawstypes:string-maxl-254;
156 description
157 "Return code description";
158 }
159 }
160 }
161 rpc waveserver-configuration-check {
162 description
163 "Check the configuration file for errors.";
164 input {
165 leaf filename {
166 type cienawstypes:string-maxl-254;
167 description
168 "The name of the configuration file to check.";
169 }
170 uses system:server-settings-group;
171 }
172 output {
173 leaf return-code {
174 type uint32;
175 description
176 "return code: 0 is success; non-zero is failure";
177 }
178 leaf return-string {
179 type cienawstypes:string-maxl-254;
180 description
181 "Return code description";
182 }
183 }
184 }
185 rpc waveserver-configuration-reset-to-user-config {
186 description
187 "Restart the Waveserver and apply the user-specified configuration file.";
188 input {
189 leaf filename {
190 type cienawstypes:string-maxl-254;
191 description
192 "The name of the user-specified configuration file.";
193 }
194 leaf revert-timeout {
195 type cienawstypes:string-maxl-32;
196 description
197 "The amount of time before auto-reversion to the previous configuration file after the Waveserver restarts. Must follow format: number/time: N[ymwdhms], e.g 1h10m3s for 1 hour 10 minutes and 3 seconds.";
198 }
199 }
200 output {
201 leaf return-code {
202 type uint32;
203 description
204 "return code: 0 is success; non-zero is failure";
205 }
206 leaf return-string {
207 type cienawstypes:string-maxl-254;
208 description
209 "Return code description";
210 }
211 }
212 }
213 rpc waveserver-configuration-cancel-revert {
214 description
215 "Cancel the configuration automatic revert when the auto-revert timer is running.";
216 output {
217 leaf return-code {
218 type uint32;
219 description
220 "return code: 0 is success; non-zero is failure";
221 }
222 leaf return-string {
223 type cienawstypes:string-maxl-254;
224 description
225 "Return code description";
226 }
227 }
228 }
229}