423bcd24ba1591e0ea0128ee866ab23a61a6e12d
[transportpce.git] / tests / honeynode / 2.2.1 / honeynode-plugin-impl / src / main / resources / honeycomb-minimal-resources / config / yang / devices / org-openroadm-otn-otu-interfaces@2018-10-19.yang
1 module org-openroadm-otn-otu-interfaces {
2   namespace "http://org/openroadm/otn-otu-interfaces";
3   prefix org-openroadm-otn-otu-interfaces;
4
5   import org-openroadm-device {
6     prefix org-openroadm-device;
7     revision-date 2018-10-19;
8   }
9   import org-openroadm-interfaces {
10     prefix openROADM-if;
11     revision-date 2017-06-26;
12   }
13   import org-openroadm-maintenance-loopback {
14     prefix org-openroadm-maint-loopback;
15     revision-date 2017-12-15;
16   }
17   import org-openroadm-otn-common {
18     prefix org-openroadm-otn-common;
19     revision-date 2017-06-26;
20   }
21   import org-openroadm-otn-common-types {
22     prefix org-openroadm-otn-common-types;
23     revision-date 2017-12-15;
24   }
25
26   organization
27     "Open ROADM MSA";
28   contact
29     "OpenROADM.org";
30   description
31     "YANG definitions for device facility otnotu interfaces.
32
33      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
34      AT&T Intellectual Property.  All other rights reserved.
35
36      Redistribution and use in source and binary forms, with or without modification,
37      are permitted provided that the following conditions are met:
38
39      * Redistributions of source code must retain the above copyright notice, this
40        list of conditions and the following disclaimer.
41      * Redistributions in binary form must reproduce the above copyright notice,
42        this list of conditions and the following disclaimer in the documentation and/or
43        other materials provided with the distribution.
44      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
45        contributors may be used to endorse or promote products derived from this software
46        without specific prior written permission.
47
48      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
49      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
50      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
51      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
52      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
53      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
54      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
55      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
56      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
57      POSSIBILITY OF SUCH DAMAGE.
58
59      Also contains code components extracted from IETF Interfaces.  These code components
60      are copyrighted and licensed as follows:
61
62      Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
63      All rights reserved.
64
65      This document is subject to BCP 78 and the IETF Trust’s Legal Provisions Relating
66      to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
67      publication of this document. Please review these documents carefully, as they
68      describe your rights and restrictions with respect to this document. Code Components
69      extracted from this document must include Simplified BSD License text as described in
70      Section 4.e of the Trust Legal Provisions and are provided without warranty as
71      described in the Simplified BSD License.";
72
73   revision 2018-10-19 {
74     description
75       "Version 2.2.1";
76   }
77   revision 2017-12-15 {
78     description
79       "Version 2.2";
80   }
81   revision 2017-09-29 {
82     description
83       "Version 2.1";
84   }
85   revision 2017-07-28 {
86     description
87       "Version 2.0.1 - added revision-date to imports";
88   }
89   revision 2017-06-26 {
90     description
91       "Version 2.0";
92   }
93   revision 2016-10-14 {
94     description
95       "Version 1.2";
96   }
97
98   grouping otu-attributes {
99     description
100       "OTU attributes";
101     leaf rate {
102       type identityref {
103         base org-openroadm-otn-common-types:otu-rate-identity;
104       }
105       description
106         "rate identity of the OTU. 'identityref' is used
107          to allow to extend for future higher rates";
108     }
109     leaf fec {
110       type enumeration {
111         enum "off" {
112           value 0;
113           description
114             "fec off";
115         }
116         enum "rsfec" {
117           value 1;
118           description
119             "rsfec";
120         }
121         enum "sdfeca1" {
122           value 2;
123           description
124             "Clariphy SDFEC";
125         }
126         enum "efec" {
127           value 3;
128           description
129             "G.975.1 I.4";
130         }
131         enum "ufec" {
132           value 4;
133           description
134             "G.975.1 I.7";
135         }
136         enum "sdfec" {
137           value 5;
138           description
139             "Soft decision FEC";
140         }
141         enum "sdfecb1" {
142           value 6;
143           description
144             "SDFEC with SCFEC";
145         }
146         enum "scfec" {
147           value 7;
148           description
149             "Stair case FEC";
150         }
151       }
152       description
153         "Forward Error Correction";
154     }
155     uses org-openroadm-otn-common:trail-trace;
156     uses org-openroadm-otn-common:deg-threshold;
157   }
158
159   grouping otu-container {
160     container otu {
161       description
162         "Optical Channel Transport Unit (OTU)";
163       uses otu-attributes;
164       uses org-openroadm-maint-loopback:maint-loopback;
165     }
166   }
167
168   augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface" {
169     when "org-openroadm-device:type = 'openROADM-if:otnOtu'";
170     uses otu-container;
171   }
172 }