1 module org-openroadm-common-node-types {
2 namespace "http://org/openroadm/common-node-types";
3 prefix org-openroadm-common-node-types;
10 "YANG definitions of common node types.
12 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
13 All other rights reserved.
15 Redistribution and use in source and binary forms, with or without modification,
16 are permitted provided that the following conditions are met:
18 * Redistributions of source code must retain the above copyright notice, this
19 list of conditions and the following disclaimer.
20 * Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions and the following disclaimer in the documentation and/or
22 other materials provided with the distribution.
23 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
24 contributors may be used to endorse or promote products derived from this software
25 without specific prior written permission.
27 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
28 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
31 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
33 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 POSSIBILITY OF SUCH DAMAGE";
79 "Identifier for node type
81 2. xpdr for Transponder, Regen
82 3. ila for in-line amplifier
83 4. extplug for external pluggable";
86 typedef node-subtypes {
91 "The none-enum indicates there is no node-subtype refinement.
92 Standard OpenROADM node properties apply in this case. If an
93 optional-leaf of node-subtypes is not present, the behaviour is the
94 same as the none-enum.";
96 enum edge-optical-spec {
99 "This enum refines a ROADM node-type. It indicates that node conforms
100 to edge optical specifications as defined in the OpenROADM MSA
101 Specification: MW-MW(Edge), MW-Wr(Edge), and Local Control (Edge).";
105 "Identifier for node-subtype. Provides refinement of node-type.";
108 typedef xpdr-node-types {
127 "Identifier for Xponder node type
132 5. Regenerator based on unidirectional model
134 Xponder types are modeled in one of two ways:
136 Type 1: The xponder ports are configured with port-qual of xpdr-client or
137 xpdr-network, the xponder connectivity is advertised using connection-map, and
138 no explicit cross connects are provisioned.
140 Type 2: The xponder ports are configured with port-qual of switch-network
141 or switch-client, the connectivity is advertised using switching-pool, and
142 explicit cross connects are provisioned.
144 Type 1 applies to transponders, unidirectional regenerators, and bidirectional regenerators.
145 Type 2 applies to muxponders and switchponders.";
148 typedef node-id-type {
151 pattern '([a-zA-Z][a-zA-Z0-9-]{5,61}[a-zA-Z0-9])' {
153 "A node-id must be 7 to 63 characters in length.
154 A node-id can contain letters, numbers, and hyphens.
155 The first character must be a letter.
156 The last character must be a letter or number.";
160 "Globally unique identifier for a device.";