1 module org-openroadm-swdl {
2 namespace "http://org/openroadm/de/swdl";
3 prefix org-openroadm-swdl;
5 import ietf-yang-types {
7 revision-date 2013-07-15;
9 import org-openroadm-common-types {
10 prefix org-openroadm-common-types;
11 revision-date 2018-10-19;
19 "Yang definitions for System Management.
21 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
22 AT&T Intellectual Property. All other rights reserved.
24 Redistribution and use in source and binary forms, with or without modification,
25 are permitted provided that the following conditions are met:
27 * Redistributions of source code must retain the above copyright notice, this
28 list of conditions and the following disclaimer.
29 * Redistributions in binary form must reproduce the above copyright notice,
30 this list of conditions and the following disclaimer in the documentation and/or
31 other materials provided with the distribution.
32 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
33 contributors may be used to endorse or promote products derived from this software
34 without specific prior written permission.
36 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
37 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
38 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
39 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
40 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
41 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
42 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
43 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
44 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45 POSSIBILITY OF SUCH DAMAGE.";
61 "Version 2.0.1 - added revision-date to imports";
76 "Gissue of the SW in this bank";
78 leaf sw-validation-timer {
80 pattern "(([0-1][0-9]|2[0-3])-([0-5][0-9])-([0-5][0-9]))";
83 "value of validation timer in hh-mm-ss";
85 leaf activation-date-time {
86 type yang:date-and-time;
88 "activation date and time: The date load was activated";
94 "SW stage - copies the SW from repo to staging bank";
101 "file name which has the load";
105 uses org-openroadm-common-types:rpc-response-status;
115 " software version of the new load which is being activated";
117 leaf validationTimer {
120 "validation timer hh-mm-ss";
124 uses org-openroadm-common-types:rpc-response-status;
127 rpc cancel-validation-timer {
129 "Cancel validation timer which user provisioned as part of activate command";
135 " TRUE means validation timer is cancelled and new load is accepted";
139 uses org-openroadm-common-types:rpc-response-status;
142 notification sw-stage-notification {
144 "notification for sw-stage.";
145 uses org-openroadm-common-types:rpc-response-status;
147 notification sw-activate-notification {
149 "notification for sw-activate events.";
150 leaf sw-active-notification-type {
151 type org-openroadm-common-types:activate-notification-type;
153 uses org-openroadm-common-types:rpc-response-status;