1 module org-openroadm-common-types {
2 namespace "http://org/openroadm/common-types";
3 prefix org-openroadm-common-types;
10 "YANG definitions of common types.
12 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
13 All other rights reserved.
15 Redistribution and use in source and binary forms, with or without modification,
16 are permitted provided that the following conditions are met:
18 * Redistributions of source code must retain the above copyright notice, this
19 list of conditions and the following disclaimer.
20 * Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions and the following disclaimer in the documentation and/or
22 other materials provided with the distribution.
23 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
24 contributors may be used to endorse or promote products derived from this software
25 without specific prior written permission.
27 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
28 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
31 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
33 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 POSSIBILITY OF SUCH DAMAGE";
75 typedef activate-notification-type {
80 "software or database activation";
85 "commit the software or database.
86 For software activate, this event can happen in the following scenarios:
87 1) immediately when user issue sw-activate command without validationTimer
88 or if the validationTimer is specified as 00-00-00;
89 2) when user issue cancel-validation-timer before it expires and with accept=true.
90 For database activate, this event can occur in the following scenarios:
91 1) immediately when user issue db-activate command without rollBackTimer
92 or if the rollBackTimer is specified as 00-00-00;
93 2) when user issue cancel-rollback-timer before it expires and with accept=true.";
98 "cancel the database or software activation operation.
99 For software activate, this event can happen in the following cases:
100 1) when the validationTimer expires;
101 2) when the user issues cancel-validation-timer with accept=false.
102 For database activate, this event can happen in the following cases:
103 1) when the rollBackTimer expires;
104 2) when the user issues cancel-rollback-timer with accept=false.";
108 "Type of notification on software or database activation events";
124 typedef extended-rpc-status {
140 typedef openroadm-version-type {
204 "OpenROADM version enum type";
207 grouping rpc-response-status {
212 "Successful or Failed";
214 leaf status-message {
217 "Gives a more detailed status";
221 grouping extended-rpc-response-status {
223 type extended-rpc-status;
226 "Successful, Failed or In-progress";
228 leaf status-message {
231 "Gives a more detailed status.";
235 grouping eth-rate-and-burst-size {
237 "Grouping of ethernet committed rate and burst size.";
238 leaf committed-info-rate {
242 "Committed Information Rate (CIR), unit in Mbps. For example, 1250 Mbps";
244 leaf committed-burst-size {
248 "Committed Burst Size, unit in 1KB (K Byte).
249 Range 16 | 32 | 64 | 128 | 512 | 1024. Default: 16";