e9c7eb03b9e872b97f31711d802b88048aae6bbb
[transportpce.git] / ordmodels / common / src / main / yang / org-openroadm-layerRate@2016-10-14.yang
1 module org-openroadm-layerRate {
2   namespace "http://org/openroadm/layerRate";
3   prefix org-openroadm-layerRate;
4
5   organization "Open ROADM MSA";
6   contact
7     "OpenROADM.org";
8   description
9     "YANG definitions of layer rates.
10
11       Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
12       AT&T Intellectual Property.  All other rights reserved.
13
14       Redistribution and use in source and binary forms, with or without modification,
15       are permitted provided that the following conditions are met:
16
17       * Redistributions of source code must retain the above copyright notice, this
18         list of conditions and the following disclaimer.
19       * Redistributions in binary form must reproduce the above copyright notice,
20         this list of conditions and the following disclaimer in the documentation and/or
21         other materials provided with the distribution.
22       * Neither the Members of the Open ROADM MSA Agreement nor the names of its
23         contributors may be used to endorse or promote products derived from this software
24         without specific prior written permission.
25
26       THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
27       AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28       WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29       IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
30       INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31       NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
32       OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33       WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34       ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35       POSSIBILITY OF SUCH DAMAGE";
36
37   revision 2016-10-14 {
38     description
39       "Version 1.2";
40   }
41
42   grouping layer-rate {
43     description
44       "Set list of layer rates, plus the ability to report layer rates not yet in set list.";
45     leaf type {
46       type layer-rate-enum;
47       mandatory true;
48     }
49     leaf extension {
50       type string;
51       mandatory false;
52     }
53   }
54
55   typedef layer-rate-enum {
56     type enumeration {
57       enum "vendorExtension" {
58         value 1;
59         description
60           "vendor extension";
61       }
62       enum "layer2" {
63         value 2;
64         description
65           "2";
66       }
67       enum "layer3" {
68         value 3;
69         description
70           "3";
71       }
72       enum "layer4" {
73         value 4;
74         description
75           "4";
76       }
77       enum "layer5" {
78         value 5;
79         description
80           "5";
81       }
82       enum "layer6" {
83         value 6;
84         description
85           "6";
86       }
87     }
88   }
89 }