Sync Common folder
[transportpce.git] / ordmodels / device / src / main / yang / org-openroadm-wavelength-map@2017-12-15.yang
1 module org-openroadm-wavelength-map {
2   namespace "http://org/openroadm/wavelength-map";
3   prefix org-openroadm-wavelength-map;
4
5   organization
6     "Open ROADM MSA";
7   contact
8     "OpenROADM.org";
9   description
10     "YANG definitions for mapping wavelength-number to center frequency and wavelength value.
11      
12      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016, 
13      AT&T Intellectual Property.  All other rights reserved.
14      
15      Redistribution and use in source and binary forms, with or without modification, 
16      are permitted provided that the following conditions are met:
17      
18      * Redistributions of source code must retain the above copyright notice, this 
19        list of conditions and the following disclaimer.
20      * Redistributions in binary form must reproduce the above copyright notice, 
21        this list of conditions and the following disclaimer in the documentation and/or 
22        other materials provided with the distribution.
23      * Neither the Members of the Open ROADM MSA Agreement nor the names of its 
24        contributors may be used to endorse or promote products derived from this software 
25        without specific prior written permission.
26      
27      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS'' 
28      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
29      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
30      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT, 
31      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
32      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA, 
33      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
34      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
35      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
36      POSSIBILITY OF SUCH DAMAGE.";
37
38   revision 2017-12-15 {
39     description
40       "Version 2.2";
41   }
42   revision 2016-10-14 {
43     description
44       "Version 1.2";
45   }
46
47   grouping wavelength-map-g {
48     list wavelengths {
49       key "wavelength-number";
50       config false;
51       leaf wavelength-number {
52         type uint32;
53       }
54       leaf center-frequency {
55         type decimal64 {
56           fraction-digits 3;
57           range "191.350..196.100";
58         }
59         units "THz";
60         description
61           "Frequency of the transmit optical channel
62            Domain range:  191.350THz .. 196.100THz ";
63       }
64       leaf wavelength {
65         type decimal64 {
66           fraction-digits 2;
67           range "1528.77..1566.72";
68         }
69         units "nm";
70         description
71           "Lambda corresponding to transmit frequency
72            Domain range:  1528.72nm .. 1566.72nm ";
73       }
74     }
75   }
76 }