1 module org-openroadm-prot-otn-linear-aps {
2 namespace "http://org/openroadm/prot/otn-linear-aps";
3 prefix org-openroadm-prot-otn-linear-aps;
5 import org-openroadm-device {
6 prefix org-openroadm-device;
7 revision-date 2017-12-15;
9 import org-openroadm-common-types {
10 prefix org-openroadm-common-types;
11 revision-date 2017-12-15;
19 "YANG definitions for device facility OTN linear APS protection groups.
21 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
22 AT&T Intellectual Property. All other rights reserved.
24 Redistribution and use in source and binary forms, with or without modification,
25 are permitted provided that the following conditions are met:
27 * Redistributions of source code must retain the above copyright notice, this
28 list of conditions and the following disclaimer.
29 * Redistributions in binary form must reproduce the above copyright notice,
30 this list of conditions and the following disclaimer in the documentation and/or
31 other materials provided with the distribution.
32 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
33 contributors may be used to endorse or promote products derived from this software
34 without specific prior written permission.
36 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
37 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
38 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
39 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
40 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
41 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
42 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
43 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
44 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45 POSSIBILITY OF SUCH DAMAGE.
47 Also contains code components extracted from IETF Interfaces. These code components
48 are copyrighted and licensed as follows:
50 Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
53 This document is subject to BCP 78 and the IETF Trust’s Legal Provisions Relating
54 to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
55 publication of this document. Please review these documents carefully, as they
56 describe your rights and restrictions with respect to this document. Code Components
57 extracted from this document must include Simplified BSD License text as described in
58 Section 4.e of the Trust Legal Provisions and are provided without warranty as
59 described in the Simplified BSD License.";
71 "Version 2.0.1 - added revision-date to imports";
78 identity otn-protection-type {
80 "OTN base protection identity from which
81 specific protection types are derived.";
84 identity odu-one-plus-one {
85 base otn-protection-type;
87 "ODU Linear Protection 1+1 permanant bridge";
90 grouping odu-sncp-protection-grps {
96 "The odu-sncp-protection-group name";
109 "Designates protection group as Line or Path";
113 base otn-protection-type;
115 default "odu-one-plus-one";
117 "The type of the protection group.";
119 leaf switching-direction {
121 enum "unidirectional-switching" {
124 enum "bidirectional-switching" {
128 default "unidirectional-switching";
130 "Bidirectional refers to APS signaling enabled (G.873.1 Table 7-1 Table 8-1).";
136 "Sets reversion behavior.";
143 "applicable to line or path switching";
148 "applicable to line or path switching";
153 "applicable to line or path switching";
158 "applicable to line switching only";
163 "applicable to line switching only";
168 "Sets the protection mode";
170 leaf protection-trigger-level {
172 enum "OTUk/ODUkA-SSF-SSD" {
175 "applicable to SNC/I";
177 enum "ODUkP/ODUjA-SSF-SSD" {
180 "applicable to CL-SNCG/I";
182 enum "ODUP-SSF-SSD" {
185 "applicable to SNC/Ne";
190 "applicable to SNC/Ns or SNC/S";
195 "applicable to SNC/Ns or SNC/S";
200 "applicable to SNC/Ns or SNC/S";
205 "applicable to SNC/Ns or SNC/S";
210 "applicable to SNC/Ns or SNC/S";
215 "applicable to SNC/Ns or SNC/S";
219 "Indicates switch trigger.";
221 leaf wait-to-restore {
222 when "../revertive = 'true'";
229 "Wait to restore time in minutes";
231 container holdoff-timer {
234 range "0 | 20 | 100";
236 units "milliseconds";
239 "switch hold-off time in milliseconds";
241 leaf holdoff-multiplier {
242 when "../holdoff= 100";
248 "switch holdoff time multiplier x100 milliseconds";
253 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
257 "Designated work interface";
259 leaf-list pg-interfaces {
261 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
265 "List of interfaces in the PG";
269 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
273 "Active interface in the PG";
278 rpc odu-sncp-protection-switch {
280 "ODU SNCP Protection Switch RPC with synchronous implementation";
282 leaf protection-group {
284 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:protection-grps/org-openroadm-prot-otn-linear-aps:odu-sncp-pg/org-openroadm-prot-otn-linear-aps:name";
288 "Target protection group";
292 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
296 "Target protection group interface";
298 leaf switch-command {
300 enum "Lock-Out-Protect" {
303 enum "Force-Switch" {
306 enum "Manual-Switch" {
316 uses org-openroadm-common-types:rpc-response-status;
319 notification odu-sncp-pg-switch-event {
322 enum "switched-to-protect" {
325 enum "switched-back-to-working" {
330 "Completed protection switch";
332 leaf odu-sncp-pg-name {
335 "The odu-sncp-protection-group name";
338 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:protection-grps" {
339 uses odu-sncp-protection-grps;