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;
7 revision-date 2016-10-14;
10 organization "Open ROADM MSA";
14 "YANG definitions of performance management types.
16 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
17 AT&T Intellectual Property. All other rights reserved.
19 Redistribution and use in source and binary forms, with or without modification,
20 are permitted provided that the following conditions are met:
22 * Redistributions of source code must retain the above copyright notice, this
23 list of conditions and the following disclaimer.
24 * Redistributions in binary form must reproduce the above copyright notice,
25 this list of conditions and the following disclaimer in the documentation and/or
26 other materials provided with the distribution.
27 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
28 contributors may be used to endorse or promote products derived from this software
29 without specific prior written permission.
31 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
32 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
34 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
35 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
36 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
37 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
38 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
39 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
40 POSSIBILITY OF SUCH DAMAGE";
47 typedef pm-granularity {
49 "Granularity of PM bin";
51 enum "notApplicable" {
53 "This is for total statistic counters on devices that support
66 typedef pm-data-type {
78 grouping pm-measurement {
80 "Set of parameters related to a PM Measurement";
81 container pmParameterName {
84 leaf pmParameterValue {
89 leaf pmParameterUnit {
91 "Unit PM parameter has been measured - frames, packets, u, etc";
97 "Location PM parameter measurement";
99 enum "notApplicable" {
113 "Direction PM parameter measurement";
114 type org-openroadm-common-types:pm-direction;
138 "Name of PM parameter. Consisists of a set list of parameters,
139 plus an extension field to support addition parameters.";
146 "name of parameter, when enum value set to vendorExtension because
147 name not found in pm-names-enum";
153 typedef pm-names-enum {
155 enum "vendorExtension" {
160 enum "bitErrorRate" {
163 "Bit error rate (BER)";
165 enum "opticalPowerOutput" {
168 "Optical Power Output (OPOUT-OTS). Total optical power includes Variable Optical Attenuator (VOA) attenuation";
170 enum "opticalReturnLoss" {
173 "Optical Return Loss (ORL-OTS) - at MW port(s) B";
175 enum "opticalPowerInput" {
178 "Optical Power Input (OPIN-OTS). Total optical power";
180 enum "opticalPower" {
183 "Optical Power Receive (OPR-OTS); Optical Power Transmit (OPT-OSC)";
185 enum "opticalChannelPowerTransmit" {
188 "Optical Channel Power Transmit (OPT-OCH). Individual channel power includes Variable Optical Attenuator (VOA) attenuation";
190 enum "codeViolations" {
193 "Code Violations (CV-PCS). 8B/10B errors";
194 reference "IEEE 802.3ah, Section 45.2.1.44";
196 enum "erroredSecondsSection" {
199 "Errored Seconds Section (ES-PCS)";
200 reference "IEEE 802.3ah, Section 45.2.1.46";
202 enum "severlyErrorSeconds" {
205 "Severely Errored Seconds (SES-PCS)";
206 reference "IEEE 802.3ah, Section 45.2.1.48";
208 enum "unavailableSecondsPCS" {
211 "Unavailable Seconds PCS (UAS-PCS)";
212 reference "IEEE 802.3ah, Section 45.2.1.52";
217 "In frames (INFRAMES-E)";
219 enum "inFramesErrored" {
222 "In frames errored (INFRAMESERR-E)";
227 "Out frames (OUTFRAMES-E)";
229 enum "erroredSecondsEthernet" {
232 "Errored Seconds Ethernet (ES-E)";
233 reference "IEEE 802.3ah, Section 45.2.1.46";
235 enum "severelyErroredSecondsEthernet" {
238 "Severly Errored Seconds, Ethernet (SES-E)";
239 reference "IEEE 802.3ah, Section 45.2.1.48";
241 enum "unavailableSecondsEthernet" {
244 "Unavailable Seconds, Ethernet (UAS-E)";
245 reference "IEEE 802.3ah, Section 45.2.1.52";
247 enum "erroredBlockCount" {
250 "Errored block count";
251 reference "G.798 : 6.5.1.1";
256 "Number of frames between a DMValue toggle event and the received DMp signal value toggle event";
259 enum "defectSeconds" {
262 "Defect Seconds (DS)";
265 enum "backwardIncomingAlignmentError" {
268 "Backward Incoming Alignment Error (BIAE)";
269 reference "Ref: G.798: 14.5.1.1.2";
271 enum "incomingAlignmentError" {
274 "Incoming Alignment Error (IAE)";
275 reference "Ref: G.798: 14.5.1.1.2";