Sync Common folder
[transportpce.git] / ordmodels / device / src / main / yang / org-openroadm-pluggable-optics-holder-capability@2017-12-15.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 2017-12-15;
8   }
9   import org-openroadm-port-capability {
10     prefix org-openroadm-port-capability;
11     revision-date 2017-12-15;
12   }
13
14   organization
15     "Open ROADM MSA";
16   contact
17     "OpenROADM.org";
18   description
19     "YANG definitions for pluggable optics holder capability.
20      
21      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016, 
22      AT&T Intellectual Property.  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 reproduce 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 products 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) 2017 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 2017-12-15 {
62     description
63       "Version 2.2";
64   }
65
66   grouping pluggable-optics-holder-capability {
67     description
68       "Pluggable optics holder capability parameters.";
69     container pluggable-optics-holder-capability {
70       config false;
71       list supported-circuit-pack-types {
72         key "supported-circuit-pack-type";
73         leaf supported-circuit-pack-type {
74           type string;
75           mandatory true;
76           description
77             "Type of pluggable circuit-pack supported";
78         }
79         list ports {
80           key "port-name";
81           description
82             "Port reference on supported pluggable circuit-pack";
83           leaf port-name {
84             type leafref {
85               path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:circuit-packs/org-openroadm-device:ports/org-openroadm-device:port-name";
86             }
87             description
88               "Port name";
89           }
90           uses org-openroadm-port-capability:port-capability-grp;
91         }
92       }
93     }
94   }
95
96   augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:circuit-packs/org-openroadm-device:cp-slots" {
97     when "org-openroadm-device:slot-type='pluggable-optics-holder'";
98     uses pluggable-optics-holder-capability;
99   }
100 }