39a649a0fb277b6853cb30af565fcd7b72788c6b
[transportpce.git] / tests / honeynode / 2.2.1 / honeynode-plugin-api / src / main / yang / device221 / org-openroadm-swdl@2018-10-19.yang
1 module org-openroadm-swdl {
2   namespace "http://org/openroadm/de/swdl";
3   prefix org-openroadm-swdl;
4
5   import ietf-yang-types {
6     prefix yang;
7     revision-date 2013-07-15;
8   }
9   import org-openroadm-common-types {
10     prefix org-openroadm-common-types;
11     revision-date 2018-10-19;
12   }
13
14   organization
15     "Open ROADM MSA";
16   contact
17     "OpenROADM.org";
18   description
19     "Yang definitions for System Management.
20      
21      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016, 
22      AT&T Intellectual Property.  All other rights reserved.
23      
24      Redistribution and use in source and binary forms, with or without modification, 
25      are permitted provided that the following conditions are met:
26      
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.
35      
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.";
46
47   revision 2018-10-19 {
48     description
49       "Version 2.2.1";
50   }
51   revision 2017-12-15 {
52     description
53       "Version 2.2";
54   }
55   revision 2017-09-29 {
56     description
57       "Version 2.1";
58   }
59   revision 2017-07-28 {
60     description
61       "Version 2.0.1 - added revision-date to imports";
62   }
63   revision 2017-06-26 {
64     description
65       "Version 2.0";
66   }
67   revision 2016-10-14 {
68     description
69       "Version 1.2";
70   }
71
72   grouping sw-bank {
73     leaf sw-version {
74       type string;
75       description
76         "Gissue of the SW in this bank";
77     }
78     leaf sw-validation-timer {
79       type string {
80         pattern "(([0-1][0-9]|2[0-3])-([0-5][0-9])-([0-5][0-9]))";
81       }
82       description
83         "value of validation timer in hh-mm-ss";
84     }
85     leaf activation-date-time {
86       type yang:date-and-time;
87       description
88         "activation date and time: The date load was activated";
89     }
90   }
91
92   rpc sw-stage {
93     description
94       "SW stage - copies the SW from repo to staging bank";
95     input {
96       leaf filename {
97         type string {
98           length "10..255";
99         }
100         description
101           "file name which has the load";
102       }
103     }
104     output {
105       uses org-openroadm-common-types:rpc-response-status;
106     }
107   }
108   rpc sw-activate {
109     description
110       "Activate new load";
111     input {
112       leaf version {
113         type string;
114         description
115           " software version of the new load which is being activated";
116       }
117       leaf validationTimer {
118         type string;
119         description
120           "validation timer hh-mm-ss";
121       }
122     }
123     output {
124       uses org-openroadm-common-types:rpc-response-status;
125     }
126   }
127   rpc cancel-validation-timer {
128     description
129       "Cancel validation timer which user provisioned as part of activate command";
130     input {
131       leaf accept {
132         type boolean;
133         default "true";
134         description
135           " TRUE means  validation timer is cancelled and new load is accepted";
136       }
137     }
138     output {
139       uses org-openroadm-common-types:rpc-response-status;
140     }
141   }
142   notification sw-stage-notification {
143     description
144       "notification for sw-stage.";
145     uses org-openroadm-common-types:rpc-response-status;
146   }
147   notification sw-activate-notification {
148     description
149       "notification for sw-activate events.";
150     leaf sw-active-notification-type {
151       type org-openroadm-common-types:activate-notification-type;
152     }
153     uses org-openroadm-common-types:rpc-response-status;
154   }
155 }