Update OLM function tests
[transportpce.git] / tests / ordmodels_1.2.1 / org-openroadm-tca.yang
1 module org-openroadm-tca {
2   namespace "http://org/openroadm/tca";
3   prefix org-openroadm-tca;
4
5   import ietf-yang-types {
6     prefix yang;
7   }
8   import org-openroadm-common-types {
9     prefix org-openroadm-common-types;
10   }
11   import org-openroadm-pm-types {
12     prefix org-openroadm-pm-types;
13   }
14   import org-openroadm-resource {
15     prefix org-openroadm-resource;
16   }
17   import org-openroadm-layerRate {
18     prefix org-openroadm-layerRate;
19   }
20
21   organization "Open ROADM MSA";
22   contact
23     "OpenROADM.org";
24   description
25     "YANG definitions of Threshold Crossing Alert types.
26
27       Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
28       AT&T Intellectual Property.  All other rights reserved.
29
30       Redistribution and use in source and binary forms, with or without modification,
31       are permitted provided that the following conditions are met:
32
33       * Redistributions of source code must retain the above copyright notice, this
34         list of conditions and the following disclaimer.
35       * Redistributions in binary form must reproduce the above copyright notice,
36         this list of conditions and the following disclaimer in the documentation and/or
37         other materials provided with the distribution.
38       * Neither the Members of the Open ROADM MSA Agreement nor the names of its
39         contributors may be used to endorse or promote products derived from this software
40         without specific prior written permission.
41
42       THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
43       AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
44       WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
45       IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
46       INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
47       NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
48       OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
49       WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50       ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
51       POSSIBILITY OF SUCH DAMAGE";
52
53   revision 2016-10-14 {
54     description
55       "Version 1.2";
56   }
57
58   grouping tca {
59     leaf id {
60       type string;
61       mandatory true;
62     }
63     container resource {
64       uses org-openroadm-resource:resource;
65     }
66     leaf granularity {
67       type org-openroadm-pm-types:pm-granularity;
68     }
69     leaf raiseTime {
70       type yang:date-and-time;
71       mandatory true;
72       config false;
73     }
74     container layerRate {
75       uses org-openroadm-layerRate:layer-rate;
76     }
77     leaf severity {
78       mandatory true;
79       type org-openroadm-common-types:severity;
80       description
81         "Severity of alarm. Based on X.733 perceived severity.";
82     }
83     leaf thresholdType {
84       mandatory false;
85       type enumeration {
86         enum "high" {
87           value 1;
88         }
89         enum "low" {
90           value 2;
91         }
92       }
93       description
94         "Threshold Crossed";
95     }
96     container thresholdMeasurement {
97       uses org-openroadm-pm-types:pm-measurement;
98     }
99   }
100
101   grouping potential-tca {
102     leaf lowThresholdValue {
103       mandatory false;
104       type uint64;
105     }
106     leaf highThresholdValue {
107       mandatory false;
108       type uint64;
109     }
110     uses tca;
111   }
112
113   container potential-tca-list {
114     list tca {
115       key "id";
116       uses potential-tca;
117     }
118   }
119   notification tca-notification {
120     uses tca;
121   }
122 }