fix ServiceHandler SpotBugs false positives
[transportpce.git] / tests / honeynode / 2.2.1 / honeynode-plugin-api / src / main / yang / common / org-openroadm-alarm@2018-10-19.yang
1 module org-openroadm-alarm {
2   namespace "http://org/openroadm/alarm";
3   prefix org-openroadm-alarm;
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   import org-openroadm-resource {
14     prefix org-openroadm-resource;
15     revision-date 2018-10-19;
16   }
17   import org-openroadm-probable-cause {
18     prefix org-openroadm-probable-cause;
19     revision-date 2018-10-19;
20   }
21
22   organization
23     "Open ROADM MSA";
24   contact
25     "OpenROADM.org";
26   description
27     "YANG definitions of an alarm.
28
29      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
30      AT&T Intellectual Property.  All other rights reserved.
31
32      Redistribution and use in source and binary forms, with or without modification,
33      are permitted provided that the following conditions are met:
34
35      * Redistributions of source code must retain the above copyright notice, this
36        list of conditions and the following disclaimer.
37      * Redistributions in binary form must reproduce the above copyright notice,
38        this list of conditions and the following disclaimer in the documentation and/or
39        other materials provided with the distribution.
40      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
41        contributors may be used to endorse or promote products derived from this software
42        without specific prior written permission.
43
44      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
45      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
46      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
47      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
48      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
49      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
50      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
52      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
53      POSSIBILITY OF SUCH DAMAGE.";
54
55   revision 2018-10-19 {
56     description
57       "Version 2.2.1";
58   }
59   revision 2017-12-15 {
60     description
61       "Version 2.2";
62   }
63   revision 2017-09-29 {
64     description
65       "Version 2.1";
66   }
67   revision 2017-07-28 {
68     description
69       "Version 2.0.1 - added revision-date to imports";
70   }
71   revision 2016-10-14 {
72     description
73       "Version 1.2";
74   }
75
76   grouping alarm {
77     leaf id {
78       type string;
79       mandatory true;
80       description
81         "Uniquely id for this alarm, within the given management domain";
82     }
83     container resource {
84       description
85         "Resource under alarm";
86       uses org-openroadm-resource:resource;
87     }
88     container probableCause {
89       description
90         "Probable cause of alarm";
91       uses org-openroadm-probable-cause:probable-cause;
92     }
93     leaf raiseTime {
94       type yang:date-and-time;
95       mandatory true;
96       description
97         "Time alarm was raised";
98     }
99     leaf severity {
100       type org-openroadm-common-types:severity;
101       mandatory true;
102       description
103         "Severity of alarm. Based on X.733 perceived severity.";
104     }
105     leaf circuit-id {
106       type string;
107       description
108         "Circuit-id for alarm correlation.";
109     }
110     leaf additional-detail {
111       type string;
112       description
113         "Provide additional descriptive text about the probable cause.";
114     }
115     leaf corrective-action {
116       type string;
117       description
118         "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 ";
119     }
120   }
121
122   notification alarm-notification {
123     description
124       "Notification sent on initial alarm creation, as well as any time the alarm changes state, including clear";
125     uses alarm;
126   }
127   container active-alarm-list {
128     config false;
129     description
130       "List of currently active alarms. An alarm is removed from this table when the state transitions to clear.";
131     list activeAlarms {
132       key "id";
133       uses alarm;
134     }
135   }
136 }