1 module org-openroadm-tca {
2 namespace "http://org/openroadm/tca";
3 prefix org-openroadm-tca;
5 import ietf-yang-types {
7 revision-date 2013-07-15;
9 import org-openroadm-common-alarm-pm-types {
10 prefix org-openroadm-common-alarm-pm-types;
11 revision-date 2019-11-29;
13 import org-openroadm-pm-types {
14 prefix org-openroadm-pm-types;
15 revision-date 2020-03-27;
17 import org-openroadm-resource-types {
18 prefix org-openroadm-resource-types;
19 revision-date 2019-11-29;
27 "YANG definitions of Threshold Crossing Alert types.
29 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
30 All other rights reserved.
32 Redistribution and use in source and binary forms, with or without modification,
33 are permitted provided that the following conditions are met:
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.
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";
93 "Version 2.0.2 - added back the missing pmParameterName container";
97 "Version 2.0.1 - added revision-date to imports";
103 revision 2016-10-14 {
108 typedef threshold-enum {
113 "enum value for high";
118 "enum value for low";
122 "typedef for threshold enum";
125 grouping tca-resource-grp {
127 "group for TCA resources";
128 leaf tca-resource-instance {
129 type instance-identifier;
132 "Retrieves all TCA assciated with the resource instance";
134 leaf tca-resource-type {
135 type org-openroadm-resource-types:resource-type-enum;
138 "The supported tca-resource type associated with the given resource instance.";
140 leaf tca-resource-type-extension {
144 "The resource type extension when the type is not defined in the resource-type-enum.";
148 grouping current-tca-group {
150 "TCA Data with current values";
151 uses tca-resource-grp;
156 "Enable for the TCA entry";
159 key "type extension location direction";
161 "List of PM entries";
162 uses current-tca-pm-val-group;
166 grouping current-tca-pm-val-group {
168 "Grouping for the TCA PM";
169 uses org-openroadm-pm-types:pm-names;
171 type org-openroadm-common-alarm-pm-types:location;
176 type org-openroadm-common-alarm-pm-types:direction;
181 key "granularity threshold-type";
183 "List for PM measurement";
185 type org-openroadm-pm-types:pm-granularity;
187 "Granularity for the PM entry";
189 leaf threshold-type {
192 "Threshold enum type";
197 "Measurement enabled";
199 leaf threshold-value {
200 type org-openroadm-pm-types:pm-data-type;
205 leaf threshold-default {
206 type org-openroadm-pm-types:pm-data-type;
209 "Threshold default value";
214 notification tca-notification {
217 uses tca-resource-grp;
219 type org-openroadm-pm-types:pm-names-enum;
231 type org-openroadm-common-alarm-pm-types:location;
237 type org-openroadm-common-alarm-pm-types:direction;
242 leaf pm-granularity {
243 type org-openroadm-pm-types:pm-granularity;
248 leaf threshold-value {
249 type org-openroadm-pm-types:pm-data-type;
254 leaf threshold-type {
261 type org-openroadm-pm-types:pm-data-type;
267 type yang:date-and-time;
274 container potential-tca-list {
276 "List of current TCAs.";
278 key "tca-resource-type tca-resource-type-extension tca-resource-instance";
280 "List of current TCA entries";
281 uses current-tca-group;