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";
71 typedef activate-notification-type {
76 "software or database activation";
81 "commit the software or database.
82 For software activate, this event can happen in the following scenarios:
83 1) immediately when user issue sw-activate command without validationTimer
84 or if the validationTimer is specified as 00-00-00;
85 2) when user issue cancel-validation-timer before it expires and with accept=true.
86 For database activate, this event can occur in the following scenarios:
87 1) immediately when user issue db-activate command without rollBackTimer
88 or if the rollBackTimer is specified as 00-00-00;
89 2) when user issue cancel-rollback-timer before it expires and with accept=true.";
94 "cancel the database or software activation operation.
95 For software activate, this event can happen in the following cases:
96 1) when the validationTimer expires;
97 2) when the user issues cancel-validation-timer with accept=false.
98 For database activate, this event can happen in the following cases:
99 1) when the rollBackTimer expires;
100 2) when the user issues cancel-rollback-timer with accept=false.";
104 "Type of notification on software or database activation events";
120 typedef extended-rpc-status {
136 typedef openroadm-version-type {
190 "OpenROADM version enum type";
193 grouping rpc-response-status {
198 "Successful or Failed";
200 leaf status-message {
203 "Gives a more detailed status";
207 grouping extended-rpc-response-status {
209 type extended-rpc-status;
212 "Successful, Failed or In-progress";
214 leaf status-message {
217 "Gives a more detailed status.";
221 grouping eth-rate-and-burst-size {
223 "Grouping of ethernet committed rate and burst size.";
224 leaf committed-info-rate {
228 "Committed Information Rate (CIR), unit in Mbps. For example, 1250 Mbps";
230 leaf committed-burst-size {
234 "Committed Burst Size, unit in 1KB (K Byte).
235 Range 16 | 32 | 64 | 128 | 512 | 1024. Default: 16";