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 2021-12-10;
14 import org-openroadm-port-types {
15 prefix org-openroadm-port-types;
16 revision-date 2020-12-11;
18 import org-openroadm-common-types {
19 prefix org-openroadm-common-types;
20 revision-date 2021-12-10;
28 "Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
29 All other rights reserved.
31 Redistribution and use in source and binary forms, with or without modification,
32 are permitted provided that the following conditions are met:
34 * Redistributions of source code must retain the above copyright notice, this
35 list of conditions and the following disclaimer.
36 * Redistributions in binary form must reproduce the above copyright notice,
37 this list of conditions and the following disclaimer in the documentation and/or
38 other materials provided with the distribution.
39 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
40 contributors may be used to endorse or promote products derived from this software
41 without specific prior written permission.
43 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
44 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
45 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
46 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
47 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
48 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
49 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
50 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
51 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
52 POSSIBILITY OF SUCH DAMAGE.";
102 revision 2018-05-30 {
106 revision 2018-03-30 {
110 revision 2017-12-15 {
114 revision 2017-09-29 {
118 revision 2017-07-28 {
120 "Version 2.0.1 - added revision-date to imports";
122 revision 2017-06-26 {
127 typedef openroadm-node-type {
162 typedef openroadm-tp-type {
191 enum XPONDER-NETWORK {
194 enum XPONDER-CLIENT {
197 enum EXT-PLUGGABLE-TP {
200 enum DEGREE-TXRX-TTP {
209 enum DEGREE-TXRX-CTP {
215 typedef openroadm-link-type {
226 enum ROADM-TO-ROADM {
232 enum XPONDER-OUTPUT {
241 typedef openroadm-node-connection-status {
249 enum UNABLE-TO-CONNECT {
255 grouping available-freq-map {
256 list avail-freq-maps {
259 "Available spectrum information";
263 "Identifier of the map. For C-band, recommend map-name = 'cband'";
265 leaf start-edge-freq {
266 type org-openroadm-common-optical-channel-types:frequency-THz;
268 "Starting edge frequency (min frequency) for the frequency map. For C-band, the recommendation is start-edge-freq = 191.325 THz";
270 leaf freq-map-granularity {
271 type org-openroadm-common-optical-channel-types:frequency-GHz;
273 "frequency granularity of each bit in the bitmap. For C-band, the recommendation is freq-map-granularity = 6.25 GHz";
275 leaf effective-bits {
278 "Number of effective bits in the frequency bitmap. Note the freq-map bitmap will be padded with 0 for byte alignment.";
283 "Frequency bitmap. Setting the value of the binary bit to 1 indicates that the corresponding spectrum is available and
284 setting to 0 indicates the corresponding spectrum is unavailable (used or unsupported).";
289 grouping wavelengths {
293 "Index should be related to the frequency based on the formula 193.1 + index * .00625 THz";
300 type org-openroadm-common-optical-channel-types:frequency-THz;
303 "Center Frequency in THz";
306 type org-openroadm-common-optical-channel-types:frequency-GHz;
309 "Frequency width in GHz.";
313 grouping type-variety-grp {
318 "Equipment type variety defined by the Open ROADM MSA or by the vendor for bookending applications.
319 This field is used by external path computation tools as a reference in a catalog to get additional
320 information about the equipment’s optical capabilities.";
324 grouping xpdr-tp-supported-interfaces {
325 list supported-interface-capability {
328 "Supported interface capability on the port.";
331 base org-openroadm-port-types:supported-if-capability;
334 "Interface type/hierarchy/rate supported on this port";
339 grouping node-due-date-list {
346 type yang:date-and-time;
348 "date and time node will begin maintenance status or date when node is planned";
351 type yang:date-and-time;
353 "date and time node will end maintenance or date when node is deployed";
358 grouping link-concatenation {
359 list link-concatenation {
364 "unique identifier for SRLG";
371 "Fiber length in desired distance unit of measure";
380 "List of all SRLG-Ids. Controller will be responsible to maintain completeness of SRLG-Ids by doing union of
381 internal and external SRLG information.";
385 "unique identifier for SRLG";
393 type org-openroadm-common-types:SRLG-type;
395 "Type of SRLG, Site SRLG, Node SRLG, Fiber SRLG or Link SRLG";
402 "Fiber length in desired distance unit of measure";
407 grouping future-SRLGs {
411 "Start date represents end date for currently active SRLGs. Start date will represent start date for planned SRLGs";
413 type yang:date-and-time;