1 module org-openroadm-ber-test {
2 namespace "http://org/openroadm/ber-test";
3 prefix org-openroadm-ber-test;
5 import org-openroadm-common-service-types {
6 prefix org-openroadm-common-service-types;
7 revision-date 2021-12-10;
9 import org-openroadm-common-ber-test {
10 prefix org-openroadm-common-ber-test;
11 revision-date 2020-05-29;
13 import ietf-yang-types {
15 revision-date 2013-07-15;
23 "YANG definitions for ber test
25 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
26 All other rights reserved.
28 Redistribution and use in source and binary forms, with or without modification,
29 are permitted provided that the following conditions are met:
31 * Redistributions of source code must retain the above copyright notice, this
32 list of conditions and the following disclaimer.
33 * Redistributions in binary form must reproduce the above copyright notice,
34 this list of conditions and the following disclaimer in the documentation and/or
35 other materials provided with the distribution.
36 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
37 contributors may be used to endorse or promote products derived from this software
38 without specific prior written permission.
40 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
41 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
42 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
43 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
44 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
46 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
47 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49 POSSIBILITY OF SUCH DAMAGE";
103 revision 2018-09-28 {
107 revision 2018-05-30 {
111 revision 2018-03-30 {
116 identity service-rpc-identity {
118 "Identifies the service rpc associated with this callback";
122 base service-rpc-identity;
124 "Identity for the ber-test rpc";
127 grouping ber-measurement {
131 leaf target-prefec-ber {
136 leaf measured-prefec-ber {
143 grouping ber-test-result-details-container {
144 container ber-results {
145 uses org-openroadm-common-ber-test:ber-test-options-container;
150 container a-end-ber-measurement {
151 uses ber-measurement;
153 container z-end-ber-measurement {
154 uses ber-measurement;
159 grouping ber-test-complex-result-details-container {
160 container ber-test-result-details {
161 list supporting-service-details {
166 "Local id for list ";
168 uses org-openroadm-common-service-types:service-identifiers-container;
169 uses org-openroadm-common-service-types:service-ends-container;
174 container a-end-ber-measurement {
175 uses ber-measurement;
177 container z-end-ber-measurement {
178 uses ber-measurement;
184 grouping ber-test-complex-result-container {
185 container ber-results {
186 uses org-openroadm-common-ber-test:ber-test-options-container;
187 uses ber-test-complex-result-details-container;
193 "This is the ber-test rpc. It is supported for a service in the service-list.";
195 uses org-openroadm-common-service-types:sdnc-request-header;
200 uses org-openroadm-common-ber-test:ber-test-options-container;
203 uses org-openroadm-common-service-types:configuration-response-common;
207 rpc complex-ber-test {
209 "This is the complex-ber-test rpc. It is supported for a service in the service-list.";
211 uses org-openroadm-common-service-types:sdnc-request-header;
216 uses org-openroadm-common-ber-test:complex-ber-test-options-container;
219 uses org-openroadm-common-service-types:configuration-response-common;
223 rpc service-rpc-ber-test-async-callback {
225 "This is the callback notification that the controller invokes on the carrier system.";
227 uses org-openroadm-common-service-types:configuration-response-common;
228 uses org-openroadm-common-service-types:service-identifiers-container;
230 type yang:date-and-time;
233 "timestamp of the initial rpc command that invoked the test";
236 type yang:date-and-time;
239 "timestamp of the callback/notification.";
241 uses ber-test-result-details-container;
244 uses org-openroadm-common-service-types:configuration-response-common;
248 rpc complex-service-rpc-ber-test-async-callback {
250 "This is the callback notification that the controller invokes on the carrier system.";
252 uses org-openroadm-common-service-types:configuration-response-common;
253 uses org-openroadm-common-service-types:service-identifiers-container;
255 type yang:date-and-time;
258 "timestamp of the initial rpc command that invoked the test";
261 type yang:date-and-time;
264 "timestamp of the callback/notification.";
266 uses ber-test-complex-result-container;
269 uses org-openroadm-common-service-types:configuration-response-common;
273 notification service-notification-ber-test {
275 "This is the callback notification that the controller invokes on the carrier system.";
276 uses org-openroadm-common-service-types:configuration-response-common;
277 uses org-openroadm-common-service-types:service-identifiers-container;
279 type yang:date-and-time;
282 "timestamp of the initial rpc command that invoked the test";
285 type yang:date-and-time;
288 "timestamp of the callback/notification.";
290 uses ber-test-result-details-container;
293 notification complex-service-notification-ber-test {
295 "This is the callback notification that the controller invokes on the carrier system.";
296 uses org-openroadm-common-service-types:configuration-response-common;
297 uses org-openroadm-common-service-types:service-identifiers-container;
299 type yang:date-and-time;
302 "timestamp of the initial rpc command that invoked the test";
305 type yang:date-and-time;
308 "timestamp of the callback/notification.";
310 uses ber-test-complex-result-details-container;