Merge "Fix bug when creating SRG termination points"
[transportpce.git] / ordmodels / network / src / main / yang / org-openroadm-external-pluggable@2021-12-10.yang
1 module org-openroadm-external-pluggable {
2   yang-version 1.1;
3   namespace "http://org/openroadm/external/pluggable";
4   prefix plg;
5
6   import org-openroadm-common-equipment-types {
7     prefix org-openroadm-common-equipment-types;
8     revision-date 2019-11-29;
9   }
10   import org-openroadm-common-state-types {
11     prefix org-openroadm-common-state-types;
12     revision-date 2019-11-29;
13   }
14   import org-openroadm-common-optical-channel-types {
15     prefix org-openroadm-common-optical-channel-types;
16     revision-date 2021-12-10;
17   }
18
19   organization
20     "OPEN ROADM MSA";
21   contact
22     "OpenROADM.org.";
23   description
24     "YANG definitions for External Pluggable
25
26
27      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
28      All other rights reserved.
29
30      Redistribution and use in source and binary forms, with or without modification,
31      are permitted provided that the following conditions are met:
32
33      * Redistributions of source code must retain the above copyright notice, this
34        list of conditions and the following disclaimer.
35      * Redistributions in binary form must reproduce the above copyright notice,
36        this list of conditions and the following disclaimer in the documentation and/or
37        other materials provided with the distribution.
38      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
39        contributors may be used to endorse or promote products derived from this software
40        without specific prior written permission.
41
42      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
43      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
44      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
45      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
46      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
47      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
48      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
49      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
51      POSSIBILITY OF SUCH DAMAGE.";
52
53   revision 2021-12-10 {
54     description
55       "Version 10.1";
56   }
57   revision 2021-09-24 {
58         description
59           "Version 10.0";
60   }
61   revision 2021-03-26 {
62     description
63       "Version 9.0";
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-03-29 {
82     description
83       "Version 5.0.0";
84   }
85   revision 2018-11-30 {
86     description
87       "Version 4.1.0";
88   }
89   revision 2018-09-28 {
90     description
91       "Version 4.0.0";
92   }
93   revision 2018-05-30 {
94     description
95       "Version 3.1.0";
96   }
97   revision 2018-03-30 {
98     description
99       "Version 3.0.0";
100   }
101   revision 2017-12-15 {
102     description
103       "Version 2.2";
104   }
105   revision 2017-09-29 {
106     description
107       "Version 2.1";
108   }
109   revision 2017-07-28 {
110     description
111       "Version 2.0.1 - added revision-date to imports";
112   }
113   revision 2017-06-26 {
114     description
115       "Version 2.0";
116   }
117   revision 2016-10-14 {
118     description
119       "Version 1.2";
120   }
121
122   grouping pluggable-node-attributes {
123     leaf pluggable-id {
124       type string;
125       description
126         "Network-wide unique identifier for a pluggable";
127     }
128     leaf customer-code {
129       type string;
130       description
131         "Owner of the pluggable";
132     }
133     container tail {
134       leaf client-equipment {
135         type string;
136       }
137       leaf client-equipment-id {
138         type string;
139       }
140       leaf clfi {
141         type string;
142       }
143     }
144   }
145
146   grouping pluggable-tp-attributes {
147     leaf rate {
148       type identityref {
149         base org-openroadm-common-optical-channel-types:och-rate-identity;
150       }
151       description
152         "rate";
153     }
154     leaf modulation-format {
155       type org-openroadm-common-optical-channel-types:modulation-format;
156     }
157     leaf optic {
158       type org-openroadm-common-equipment-types:optic-types;
159     }
160     leaf state {
161       type org-openroadm-common-state-types:state;
162       description
163         "A xponder can be in one of the following
164                states";
165     }
166   }
167 }