1 module org-openroadm-pm-types {
2 namespace "http://org/openroadm/pm-types";
3 prefix org-openroadm-pm-types;
5 import org-openroadm-common-types {
6 prefix org-openroadm-common-types;
9 organization "Open ROADM MSA";
13 "YANG definitions of performance management types.
15 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
16 AT&T Intellectual Property. All other rights reserved.
18 Redistribution and use in source and binary forms, with or without modification,
19 are permitted provided that the following conditions are met:
21 * Redistributions of source code must retain the above copyright notice, this
22 list of conditions and the following disclaimer.
23 * Redistributions in binary form must reproduce the above copyright notice,
24 this list of conditions and the following disclaimer in the documentation and/or
25 other materials provided with the distribution.
26 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
27 contributors may be used to endorse or promote products derived from this software
28 without specific prior written permission.
30 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
31 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
33 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
34 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
35 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
36 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
37 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39 POSSIBILITY OF SUCH DAMAGE";
46 typedef pm-granularity {
48 "Granularity of PM bin";
50 enum "notApplicable" {
52 "This is for total statistic counters on devices that support
65 typedef pm-data-type {
77 grouping pm-measurement {
79 "Set of parameters related to a PM Measurement";
80 container pmParameterName {
83 leaf pmParameterValue {
88 leaf pmParameterUnit {
90 "Unit PM parameter has been measured - frames, packets, u, etc";
96 "Location PM parameter measurement";
98 enum "notApplicable" {
112 "Direction PM parameter measurement";
113 type org-openroadm-common-types:pm-direction;
137 "Name of PM parameter. Consisists of a set list of parameters,
138 plus an extension field to support addition parameters.";
145 "name of parameter, when enum value set to vendorExtension because
146 name not found in pm-names-enum";
152 typedef pm-names-enum {
154 enum "vendorExtension" {
159 enum "bitErrorRate" {
162 "Bit error rate (BER)";
164 enum "opticalPowerOutput" {
167 "Optical Power Output (OPOUT-OTS). Total optical power includes Variable Optical Attenuator (VOA) attenuation";
169 enum "opticalReturnLoss" {
172 "Optical Return Loss (ORL-OTS) - at MW port(s) B";
174 enum "opticalPowerInput" {
177 "Optical Power Input (OPIN-OTS). Total optical power";
179 enum "opticalPower" {
182 "Optical Power Receive (OPR-OTS); Optical Power Transmit (OPT-OSC)";
184 enum "opticalChannelPowerTransmit" {
187 "Optical Channel Power Transmit (OPT-OCH). Individual channel power includes Variable Optical Attenuator (VOA) attenuation";
189 enum "codeViolations" {
192 "Code Violations (CV-PCS). 8B/10B errors";
193 reference "IEEE 802.3ah, Section 45.2.1.44";
195 enum "erroredSecondsSection" {
198 "Errored Seconds Section (ES-PCS)";
199 reference "IEEE 802.3ah, Section 45.2.1.46";
201 enum "severlyErrorSeconds" {
204 "Severely Errored Seconds (SES-PCS)";
205 reference "IEEE 802.3ah, Section 45.2.1.48";
207 enum "unavailableSecondsPCS" {
210 "Unavailable Seconds PCS (UAS-PCS)";
211 reference "IEEE 802.3ah, Section 45.2.1.52";
216 "In frames (INFRAMES-E)";
218 enum "inFramesErrored" {
221 "In frames errored (INFRAMESERR-E)";
226 "Out frames (OUTFRAMES-E)";
228 enum "erroredSecondsEthernet" {
231 "Errored Seconds Ethernet (ES-E)";
232 reference "IEEE 802.3ah, Section 45.2.1.46";
234 enum "severelyErroredSecondsEthernet" {
237 "Severly Errored Seconds, Ethernet (SES-E)";
238 reference "IEEE 802.3ah, Section 45.2.1.48";
240 enum "unavailableSecondsEthernet" {
243 "Unavailable Seconds, Ethernet (UAS-E)";
244 reference "IEEE 802.3ah, Section 45.2.1.52";
246 enum "erroredBlockCount" {
249 "Errored block count";
250 reference "G.798 : 6.5.1.1";
255 "Number of frames between a DMValue toggle event and the received DMp signal value toggle event";
258 enum "defectSeconds" {
261 "Defect Seconds (DS)";
264 enum "backwardIncomingAlignmentError" {
267 "Backward Incoming Alignment Error (BIAE)";
268 reference "Ref: G.798: 14.5.1.1.2";
270 enum "incomingAlignmentError" {
273 "Incoming Alignment Error (IAE)";
274 reference "Ref: G.798: 14.5.1.1.2";