Update docs conf.yaml version to Sulfur
[transportpce.git] / ordmodels / device / src / main / yang / org-openroadm-pluggable-optics-holder-capability@2020-05-29.yang
1 module org-openroadm-pluggable-optics-holder-capability {
2   namespace "http://org/openroadm/pluggable-optics-holder-capability";
3   prefix org-openroadm-pluggable-optics-holder-capability;
4
5   import org-openroadm-device {
6     prefix org-openroadm-device;
7     revision-date 2020-05-29;
8   }
9   import org-openroadm-port-capability {
10     prefix org-openroadm-port-capability;
11     revision-date 2020-05-29;
12   }
13   import org-openroadm-port-types {
14     prefix org-openroadm-port-types;
15     revision-date 2020-03-27;
16   }
17
18   organization
19     "Open ROADM MSA";
20   contact
21     "OpenROADM.org";
22   description
23     "YANG definitions for pluggable optics holder capability.
24
25      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
26      All other rights reserved.
27
28      Redistribution and use in source and binary forms, with or without modification,
29      are permitted provided that the following conditions are met:
30
31      * Redistributions of source code must retain the above copyright notice, this
32        list of conditions and the following disclaimer.
33      * Redistributions in binary form must reproduce the above copyright notice,
34        this list of conditions and the following disclaimer in the documentation and/or
35        other materials provided with the distribution.
36      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
37        contributors may be used to endorse or promote products derived from this software
38        without specific prior written permission.
39
40      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
41      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
42      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
43      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
44      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
46      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
47      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49      POSSIBILITY OF SUCH DAMAGE.
50
51      Also contains code components extracted from IETF Interfaces.  These code components
52      are copyrighted and licensed as follows:
53
54      Copyright (c) 2017 IETF Trust and the persons identified as the document authors.
55      All rights reserved.
56
57      This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating
58      to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
59      publication of this document. Please review these documents carefully, as they
60      describe your rights and restrictions with respect to this document. Code Components
61      extracted from this document must include Simplified BSD License text as described in
62      Section 4.e of the Trust Legal Provisions and are provided without warranty as
63      described in the Simplified BSD License.";
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
110   grouping pluggable-optics-holder-capability {
111     description
112       "Pluggable optics holder capability parameters.";
113     container pluggable-optics-holder-capability {
114       config false;
115       description
116         "Container for pluggable optics holder capability";
117       list supported-circuit-pack {
118         key "supported-circuit-pack-type supported-pluggable-id-type";
119         description
120           "List for supported circuit pack";
121         leaf supported-circuit-pack-type {
122           type string;
123           mandatory true;
124           description
125             "Type of pluggable circuit-pack supported";
126         }
127         leaf supported-pluggable-id-type {
128           type identityref {
129             base org-openroadm-port-types:pluggable-identifiers-identity;
130           }
131           description
132             "Supported pluggable id type";
133         }
134         list ports {
135           key "port-name";
136           description
137             "Port reference on supported pluggable circuit-pack";
138           leaf port-name {
139             type string;
140             description
141               "Port name";
142           }
143           uses org-openroadm-port-capability:port-capability-grp;
144         }
145       }
146     }
147   }
148
149   augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:circuit-packs/org-openroadm-device:cp-slots" {
150     when "org-openroadm-device:slot-type='pluggable-optics-holder'";
151     uses pluggable-optics-holder-capability;
152   }
153 }