Upgrade Network model from 2.1 to 4.1
[transportpce.git] / ordmodels / network / src / main / yang / org-openroadm-srg@2018-11-30.yang
1 module org-openroadm-srg {
2   yang-version 1.1;
3   namespace "http://org/openroadm/srg";
4   prefix srg;
5
6   import org-openroadm-network-types {
7     prefix org-openroadm-network-types;
8     revision-date 2018-11-30;
9   }
10   import org-openroadm-common-optical-channel-types {
11     prefix org-openroadm-common-optical-channel-types;
12     revision-date 2018-11-30;
13   }
14
15   organization
16     "OPEN ROADM MSA";
17   contact
18     "OpenROADM.org.";
19   description
20     "YANG definitions for an Add/Drop group in Network Model
21
22      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
23      All other rights reserved.
24
25      Redistribution and use in source and binary forms, with or without modification,
26      are permitted provided that the following conditions are met:
27
28      * Redistributions of source code must retain the above copyright notice, this
29        list of conditions and the following disclaimer.
30      * Redistributions in binary form must reproduce the above copyright notice,
31        this list of conditions and the following disclaimer in the documentation and/or
32        other materials provided with the distribution.
33      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
34        contributors may be used to endorse or promote products derived from this software
35        without specific prior written permission.
36
37      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
38      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
39      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
40      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
41      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
42      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
43      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
44      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46      POSSIBILITY OF SUCH DAMAGE.";
47
48   revision 2018-11-30 {
49     description
50       "Version 4.1.0";
51   }
52   revision 2018-09-28 {
53     description
54       "Version 4.0.0";
55   }
56   revision 2018-05-30 {
57     description
58       "Version 3.1.0";
59   }
60   revision 2018-03-30 {
61     description
62       "Version 3.0.0";
63   }
64   revision 2017-12-15 {
65     description
66       "Version 2.2";
67   }
68   revision 2017-09-29 {
69     description
70       "Version 2.1";
71   }
72   revision 2017-07-28 {
73     description
74       "Version 2.0.1 - added revision-date to imports";
75   }
76   revision 2017-06-26 {
77     description
78       "Version 2.0";
79   }
80   revision 2016-10-14 {
81     description
82       "Version 1.2";
83   }
84
85   grouping srg-node-attributes {
86     leaf srg-number {
87       type uint16;
88     }
89     leaf max-pp {
90       type uint32;
91       description
92         "Maximum number of add/drop port pairs in an SRG";
93     }
94     leaf current-provisioned-pp {
95       type uint32;
96       description
97         "current provisioned number of port pair in a given SRG";
98     }
99     list available-wavelengths {
100       key "index";
101       description
102         "This list is created to accommodate fix grid (1.2.1) as well as flex grid (2.0 above). In case of fixed grid
103          index number will refer to one of the 96 WL defined in the wavelength map file. In case of flex grid this
104          will hold list of available spectra";
105       uses org-openroadm-network-types:wavelengths;
106     }
107     leaf wavelength-duplication {
108       type org-openroadm-common-optical-channel-types:wavelength-duplication-type;
109     }
110   }
111 }