1 module org-openroadm-common-types {
2 namespace "http://org/openroadm/common-types";
3 prefix org-openroadm-common-types;
10 "YANG definitions of common types.
12 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
13 AT&T Intellectual Property. 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";
47 grouping physical-location {
82 "Identifier for node type
84 2. xpdr for Transponder, Regen
85 3. ila for in-line amplifier
86 4. extplug for external plugable";
89 typedef xpdr-node-types {
99 "Identifier for Xponder node type
104 typedef frequency-THz {
106 "Frequency value in THz.";
113 typedef frequency-GHz {
115 "Frequency value in GHz.";
124 "Power value in dBm.";
133 "Power ratio in dB.";
142 "Polarization Mode Dispersion expressed in ps/km(1/2).";
146 units "ps/(km[1/2])";
149 typedef amplifier-types {
156 "3 digit identifier for amplifier type
157 1. std for standard amplifier as defined initially
158 To be completed if/when additional amplifier types are required ";
161 typedef amplifier-operational-mode {
163 "Operational mode for the amplifier: this parameter will
164 allow modeling different operational modes for switch-gain amplifiers
165 The enum is to be completed/modified when new amplifiers are specified ";
184 "Severity, based on X.733 perceived severity";
201 enum "indeterminate" {
207 typedef activate-notification-type {
209 "Type of notification on software or database activation events";
214 "software or database activation";
219 "commit the software or database.
220 For software activate, this event can happen in the following scenarios:
221 1) immediately when user issue db-activate command without rollBackTimer
222 or if the rollBackTimer is specified as 00-00-00;
223 2) when user issue cancel-rollback-timer before it expires and with accept=true.
224 For database activate, this event can occur in the following scenarios:
225 1) immediately when user issue db-activate command without rollBackTimer
226 or if the rollBackTimer is specified as 00-00-00;
227 2) when user issue cancel-rollback-timer before it expires and with accept=true.";
232 "cancel the database or software activation operation.
233 For software activate, this event can happen in the following cases:
234 1) when the rollBackTimer expires;
235 2) when the user issues cancel-rollback-timer with accept=false.
236 For database activate, this event can happen in the following cases:
237 1) when the rollBackTimer expires;
238 2) when the user issues cancel-rollback-timer with accept=false.";
256 grouping rpc-response-status {
261 "Successful or Failed";
263 leaf status-message {
266 "Gives a more detailed status";
270 typedef extended-rpc-status {
286 grouping extended-rpc-response-status {
288 type extended-rpc-status;
291 "Successful, Failed or In-progress";
293 leaf status-message {
296 "Gives a more detailed status.";
300 typedef lifecycle-state {
333 "State that indicates whether the resource is able to provide fullfill its role - carry traffic, etc.";
338 enum "outOfService" {
347 typedef optic-types {
358 grouping equipment-type {
360 type equipment-type-enum;
366 "Populated with equipment type when enum value is set to vendorExtension";
373 typedef equipment-type-enum {
381 enum "shelfProcessor" {
384 enum "crossConnect" {
399 typedef optical-control-mode {
401 "Optical Control Mode: identifies specific algorithm related to power management and general optical control.";
413 reference "openroadm.org: Open ROADM MSA Specification.";
424 enum "bidirectional" {
427 enum "notApplicable" {
435 enum "notApplicable" {
447 typedef wavelength-duplication-type {
449 "One per srg is applied to C/D add/drop group
450 one per degree is applied to C/D/C add drop group";
454 "The SRG cannot handle wavelength duplication. Attempting to provision a connection on this SRG that uses the same wavelength as an existing service will result in failure.";
457 enum "one-per-degree" {
459 "The SRG can handle wavelength duplication, but only one per degree. Attempting to provision a connection on this SRG that uses the same wavelength as an existing service will succeed, so long as the connections are not using the same degree.";
467 enum "roadm-internal" {
470 enum "roadm-external" {
473 enum "xpdr-network" {
482 enum "switch-network" {
485 enum "switch-client" {
488 enum "ila-external" {
491 enum "ila-internal" {
497 identity och-rate-identity {
499 "A unique och rate identification";
503 base och-rate-identity;
505 "Identity for 200G Rate";
509 base och-rate-identity;
511 "Identity for 100G Rate";
515 base och-rate-identity;
517 "Identity for 10.7G Rate";
521 base och-rate-identity;
523 "Identity for 11.1G Rate";
526 typedef modulation-format {
531 "binary phase-shift keying";
536 "DC dual-polarization binary phase-shift keying";
541 "quadrature phase-shift keying";
546 "dual-polarization binary phase-shift keying";
551 "quadrature amplitude modulation 16";
556 "dual-polarization quadrature amplitude modulation 16";
561 "DC dual-polarization quadrature amplitude modulation 16";
566 "quadrature amplitude modulation 8";
571 "dual-polarization quadrature amplitude modulation 8";
576 "DC dual-polarization quadrature amplitude modulation 8";