Remove openroadm and tapi models building
[transportpce.git] / ordmodels / network / src / main / yang / org-openroadm-degree@2021-12-10.yang
1 module org-openroadm-degree {
2   yang-version 1.1;
3   namespace "http://org/openroadm/degree";
4   prefix dgr;
5
6   import org-openroadm-common-link-types {
7     prefix org-openroadm-common-link-types;
8     revision-date 2019-11-29;
9   }
10   import org-openroadm-network-types {
11     prefix org-openroadm-network-types;
12     revision-date 2021-12-10;
13   }
14
15   organization
16     "Open ROADM MSA";
17   contact
18     "OpenROADM.org.";
19   description
20     "YANG definitions for a Degree in Network Model
21
22
23      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
24      All other rights reserved.
25
26      Redistribution and use in source and binary forms, with or without modification,
27      are permitted provided that the following conditions are met:
28
29      * Redistributions of source code must retain the above copyright notice, this
30        list of conditions and the following disclaimer.
31      * Redistributions in binary form must reproduce the above copyright notice,
32        this list of conditions and the following disclaimer in the documentation and/or
33        other materials provided with the distribution.
34      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
35        contributors may be used to endorse or promote products derived from this software
36        without specific prior written permission.
37
38      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
39      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
40      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
41      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
42      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
43      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
44      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
45      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
46      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
47      POSSIBILITY OF SUCH DAMAGE.";
48
49   revision 2021-12-10 {
50     description
51       "Version 10.1";
52   }
53   revision 2021-09-24 {
54         description
55           "Version 10.0";
56   } 
57   revision 2021-03-26 {
58     description
59       "Version 9.0";
60   }
61   revision 2020-12-11 {
62     description
63       "Version 8.1";
64   }
65   revision 2020-05-29 {
66     description
67       "Version 7.1.0";
68   }
69   revision 2020-03-27 {
70     description
71       "Version 7.0.0";
72   }
73   revision 2019-11-29 {
74     description
75       "Version 6.1.0";
76   }
77   revision 2019-09-27 {
78     description
79       "Version 6.0.0";
80   }
81   revision 2019-05-31 {
82     description
83       "Version 5.1.0";
84   }
85   revision 2019-03-29 {
86     description
87       "Version 5.0.0";
88   }
89   revision 2018-11-30 {
90     description
91       "Version 4.1.0";
92   }
93   revision 2018-09-28 {
94     description
95       "Version 4.0.0";
96   }
97   revision 2018-05-30 {
98     description
99       "Version 3.1.0";
100   }
101   revision 2018-03-30 {
102     description
103       "Version 3.0.0";
104   }
105   revision 2017-12-15 {
106     description
107       "Version 2.2";
108   }
109   revision 2017-09-29 {
110     description
111       "Version 2.1";
112   }
113   revision 2017-07-28 {
114     description
115       "Version 2.0.1 - added revision-date to imports";
116   }
117   revision 2017-06-26 {
118     description
119       "Version 2.0";
120   }
121   revision 2016-10-14 {
122     description
123       "Version 1.2";
124   }
125
126   grouping degree-used-wavelengths {
127     description
128       "This list is created to accommodate fixed grid (1.2.1) as well as flex grid (2.0 above). In case of fixed grid
129        index number will refer to one of the 96 WL defined in the wavelength map file. In case of flex grid this
130        will hold list of used spectra";
131     list used-wavelengths {
132       key "index";
133       uses org-openroadm-network-types:wavelengths;
134     }
135   }
136
137   grouping degree-node-attributes {
138     description
139       "Defines the group of degree attributes";
140     leaf degree-number {
141       type uint16;
142     }
143     leaf max-wavelengths {
144       type uint32;
145       description
146         "maximum # of wavelengths";
147     }
148     leaf ingress-span-loss-aging-margin {
149       type org-openroadm-common-link-types:ratio-dB;
150       config true;
151       description
152         "Span-loss margin extracted from corresponding device OTS interface container, optional";
153     }
154     leaf eol-max-load-pIn {
155       type org-openroadm-common-link-types:power-dBm;
156       config true;
157       description
158         "End Of Life Total input power at maximum load extracted from corresponding device OTS interface container";
159     }
160     leaf egress-average-channel-power {
161       type org-openroadm-common-link-types:power-dBm;
162       config true;
163       description
164         "Based upon the total max power across the 4.8 THz passband.";
165     }
166     leaf-list supported-operational-modes {
167       type string;
168       config true;
169       description
170         "defines the supported openroadm specifications";
171     }
172   }
173 }