1 module org-openroadm-maintenance-testsignal {
3 namespace "http://org/openroadm/maintenance-testsignal";
4 prefix org-openroadm-maint-testsignal;
6 import org-openroadm-common-types {
7 prefix org-openroadm-common-types;
8 revision-date 2020-05-29;
16 "YANG definitions for maintenance testsignal.
18 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
19 All other rights reserved.
21 Redistribution and use in source and binary forms, with or without modification,
22 are permitted provided that the following conditions are met:
24 * Redistributions of source code must retain the above copyright notice, this
25 list of conditions and the following disclaimer.
26 * Redistributions in binary form must reproduce the above copyright notice,
27 this list of conditions and the following disclaimer in the documentation and/or
28 other materials provided with the distribution.
29 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
30 contributors may be used to endorse or promote products derived from this software
31 without specific prior written permission.
33 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
34 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
36 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
37 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
38 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
39 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
40 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42 POSSIBILITY OF SUCH DAMAGE.";
81 grouping maint-testsignal {
83 "Maintenance testsignal grouping";
84 container maint-testsignal {
86 "Maintenance testsignal container";
87 typedef testsig-type {
92 "test signal in the facility direction";
97 "test signal in the terminal direction";
101 "Testsignal enum typedef";
104 action clear-diagnostics {
106 "Perform maintenance and diagnostic counter clear.";
111 "Maintenance and Diagnostic counter to be cleared. If the type is not specified then it will reset the counter for the enabled type(s)";
116 type org-openroadm-common-types:rpc-status;
121 leaf status-message {
132 "testsignal enabled flag";
135 when "../enabled = 'true'";
140 "Unframed, inverted PN-31 pattern or PRBS31 pattern per IEEE 802.3 clause 50.3.8.2 (inverted PN-31 at line rate)";
145 "PRBS31 with standard mapping per G.709";
150 "SONET/SDH Framed,inverted PN-23 pattern.";
155 "pseudo-random with zeros data pattern per IEEE 802.3 clause 49.2.8";
160 "Scrambled IDLE test-pattern per IEEE 802.3ba";
165 "Set test signal pattern";
168 when "../enabled = 'true'";
172 "Set test signal type (or direction).";
178 "sync status of the received test signal";
181 when "../enabled = 'true' and ../inSync = 'true'";
186 "number of seconds the received test signal is in sync.";
189 when "../enabled = 'true'";
191 range "0..4294967295";
195 "bit errors for test signal.";
203 "bit error rate of the received test signal";