Update docs conf.yaml version to Sulfur
[transportpce.git] / ordmodels / device / src / main / yang / org-openroadm-gcc-interfaces@2020-05-29.yang
1 module org-openroadm-gcc-interfaces {
2   namespace "http://org/openroadm/gcc-interfaces";
3   prefix org-openroadm-gcc-interfaces;
4
5   import org-openroadm-device {
6     prefix org-openroadm-device;
7     revision-date 2020-05-29;
8   }
9   import org-openroadm-interfaces {
10     prefix openROADM-if;
11     revision-date 2019-11-29;
12   }
13
14   organization
15     "Open ROADM MSA";
16   contact
17     "OpenROADM.org";
18   description
19     "YANG definitions for device facility gcc interfaces.
20
21      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
22      All other rights reserved.
23
24      Redistribution and use in source and binary forms, with or without modification,
25      are permitted provided that the following conditions are met:
26
27      * Redistributions of source code must retain the above copyright notice, this
28        list of conditions and the following disclaimer.
29      * Redistributions in binary form must reprgccce the above copyright notice,
30        this list of conditions and the following disclaimer in the documentation and/or
31        other materials provided with the distribution.
32      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
33        contributors may be used to endorse or promote prgcccts derived from this software
34        without specific prior written permission.
35
36      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
37      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
38      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
39      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
40      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
41      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
42      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
43      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
44      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45      POSSIBILITY OF SUCH DAMAGE.
46
47      Also contains code components extracted from IETF Interfaces.  These code components
48      are copyrighted and licensed as follows:
49
50      Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
51      All rights reserved.
52
53      This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating
54      to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
55      publication of this document. Please review these documents carefully, as they
56      describe your rights and restrictions with respect to this document. Code Components
57      extracted from this document must include Simplified BSD License text as described in
58      Section 4.e of the Trust Legal Provisions and are provided without warranty as
59      described in the Simplified BSD License.";
60
61   revision 2020-05-29 {
62     description
63       "Version 7.1.0";
64   }
65   revision 2020-03-27 {
66     description
67       "Version 7.0.0";
68   }
69   revision 2019-11-29 {
70     description
71       "Version 6.1.0";
72   }
73   revision 2019-09-27 {
74     description
75       "Version 6.0.0";
76   }
77   revision 2019-05-31 {
78     description
79       "Version 5.1.0";
80   }
81   revision 2019-03-29 {
82     description
83       "Version 5.0.0";
84   }
85   revision 2018-11-30 {
86     description
87       "Version 4.1.0";
88   }
89   revision 2018-09-28 {
90     description
91       "Version 4.0.0";
92   }
93   revision 2018-05-30 {
94     description
95       "Version 3.1.0";
96   }
97   revision 2018-03-30 {
98     description
99       "Version 3.0";
100   }
101
102   grouping gcc-interfaces {
103     container gcc {
104       description
105         "GCC Channel on OTN interface.";
106       leaf gcc-channel-type {
107         type enumeration {
108           enum gcc0 {
109             value 1;
110             description
111               "OTU GCC0 channel";
112           }
113           enum gcc1 {
114             value 2;
115             description
116               "ODU GCC1 channel";
117           }
118           enum gcc2 {
119             value 3;
120             description
121               "ODU GCC2 channel";
122           }
123           enum gcc1-gcc2 {
124             value 4;
125             description
126               "Combined ODU GCC channel";
127           }
128         }
129       }
130     }
131   }
132
133   augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface" {
134     when "org-openroadm-device:type = 'openROADM-if:gcc'";
135     uses gcc-interfaces;
136   }
137 }