1 module org-openroadm-network-types {
3 namespace "http://org/openroadm/network/types";
6 import ietf-yang-types {
8 revision-date 2013-07-15;
10 import org-openroadm-common-optical-channel-types {
11 prefix org-openroadm-common-optical-channel-types;
12 revision-date 2020-05-29;
14 import org-openroadm-port-types {
15 prefix org-openroadm-port-types;
16 revision-date 2020-03-27;
24 "Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
25 All other rights reserved.
27 Redistribution and use in source and binary forms, with or without modification,
28 are permitted provided that the following conditions are met:
30 * Redistributions of source code must retain the above copyright notice, this
31 list of conditions and the following disclaimer.
32 * Redistributions in binary form must reproduce the above copyright notice,
33 this list of conditions and the following disclaimer in the documentation and/or
34 other materials provided with the distribution.
35 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
36 contributors may be used to endorse or promote products derived from this software
37 without specific prior written permission.
39 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
40 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
41 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
42 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
43 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
45 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
46 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
47 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
48 POSSIBILITY OF SUCH DAMAGE.";
100 "Version 2.0.1 - added revision-date to imports";
102 revision 2017-06-26 {
107 typedef openroadm-node-type {
142 typedef openroadm-tp-type {
171 enum XPONDER-NETWORK {
174 enum XPONDER-CLIENT {
177 enum EXT-PLUGGABLE-TP {
180 enum DEGREE-TXRX-TTP {
189 enum DEGREE-TXRX-CTP {
195 typedef openroadm-link-type {
206 enum ROADM-TO-ROADM {
212 enum XPONDER-OUTPUT {
221 typedef openroadm-node-connection-status {
229 enum UNABLE-TO-CONNECT {
235 grouping available-freq-map {
236 list avail-freq-maps {
239 "Available spectrum information";
243 "Identifier of the map. For C-band, recommend map-name = 'cband'";
245 leaf start-edge-freq {
246 type org-openroadm-common-optical-channel-types:frequency-THz;
248 "Starting edge frequency (min frequency) for the frequency map. For C-band, the recommendation is start-edge-freq = 191.325 THz";
250 leaf freq-map-granularity {
251 type org-openroadm-common-optical-channel-types:frequency-GHz;
253 "frequency granularity of each bit in the bitmap. For C-band, the recommendation is freq-map-granularity = 6.25 GHz";
255 leaf effective-bits {
258 "Number of effective bits in the frequency bitmap. Note the freq-map bitmap will be padded with 0 for byte alignment.";
263 "Frequency bitmap. Setting the value of the binary bit to 1 indicates that the corresponding spectrum is available and
264 setting to 0 indicates the corresponding spectrum is unavailable (used or unsupported).";
269 grouping wavelengths {
273 "Index should be related to the frequency based on the formula 193.1 + index * .00625 THz";
280 type org-openroadm-common-optical-channel-types:frequency-THz;
283 "Center Frequency in THz";
286 type org-openroadm-common-optical-channel-types:frequency-GHz;
289 "Frequency width in GHz.";
293 grouping type-variety-grp {
298 "Equipment type variety defined by the Open ROADM MSA or by the vendor for bookending applications.
299 This field is used by external path computation tools as a reference in a catalog to get additional
300 information about the equipment’s optical capabilities.";
304 grouping xpdr-tp-supported-interfaces {
305 list supported-interface-capability {
308 "Supported interface capability on the port.";
311 base org-openroadm-port-types:supported-if-capability;
314 "Interface type/hierarchy/rate supported on this port";
319 grouping node-due-date-list {
326 type yang:date-and-time;
328 "date and time node will begin maintenance status or date when node is planned";
331 type yang:date-and-time;
333 "date and time node will end maintenance or date when node is deployed";