1 module org-openroadm-alarm {
2 namespace "http://org/openroadm/alarm";
3 prefix org-openroadm-alarm;
5 import ietf-yang-types {
7 revision-date 2013-07-15;
9 import org-openroadm-resource {
10 prefix org-openroadm-resource;
11 revision-date 2020-05-29;
13 import org-openroadm-probable-cause {
14 prefix org-openroadm-probable-cause;
15 revision-date 2020-05-29;
23 "YANG definitions of an alarm.
25 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
26 All other rights reserved.
28 Redistribution and use in source and binary forms, with or without modification,
29 are permitted provided that the following conditions are met:
31 * Redistributions of source code must retain the above copyright notice, this
32 list of conditions and the following disclaimer.
33 * Redistributions in binary form must reproduce the above copyright notice,
34 this list of conditions and the following disclaimer in the documentation and/or
35 other materials provided with the distribution.
36 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
37 contributors may be used to endorse or promote products derived from this software
38 without specific prior written permission.
40 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
41 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
42 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
43 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
44 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
46 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
47 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49 POSSIBILITY OF SUCH DAMAGE.";
97 "Version 2.0.1 - added revision-date to imports";
126 "Severity, based on X.733 perceived severity";
134 "Uniquely id for this alarm, within the given management domain";
138 "Resource under alarm";
139 uses org-openroadm-resource:resource;
141 container probableCause {
143 "Probable cause of alarm";
144 uses org-openroadm-probable-cause:probable-cause;
147 type yang:date-and-time;
150 "Time alarm was raised";
156 "Severity of alarm. Based on X.733 perceived severity.";
161 "Circuit-id for alarm correlation.";
163 leaf additional-detail {
166 "Provide additional descriptive text about the probable cause.";
168 leaf corrective-action {
171 "Provide recommended corrective actions for this probable cause, i.e. replace or restart a circuit pack, check wiring for the reported source, or secondary failure to be correlated ";
175 notification alarm-notification {
177 "Notification sent on initial alarm creation, as well as any time the alarm changes state, including clear";
181 container active-alarm-list {
184 "List of currently active alarms. An alarm is removed from this table when the state transitions to clear.";