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 2019-05-31;
9 import org-openroadm-common-ber-test {
10 prefix org-openroadm-common-ber-test;
11 revision-date 2018-11-30;
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";
76 identity service-rpc-identity {
78 "Identifies the service rpc associated with this callback";
82 base service-rpc-identity;
84 "Identity for the ber-test rpc";
87 grouping ber-measurement {
91 leaf target-prefec-ber {
96 leaf measured-prefec-ber {
103 grouping ber-test-result-details-container {
104 container ber-results {
105 uses org-openroadm-common-ber-test:ber-test-options-container;
110 container a-end-ber-measurement {
111 uses ber-measurement;
113 container z-end-ber-measurement {
114 uses ber-measurement;
118 grouping ber-test-complex-result-details-container {
119 container ber-test-result-details {
120 list supporting-service-details {
125 "Local id for list ";
127 uses org-openroadm-common-service-types:service-identifiers-container;
128 uses org-openroadm-common-service-types:service-ends-container;
133 container a-end-ber-measurement {
134 uses ber-measurement;
136 container z-end-ber-measurement {
137 uses ber-measurement;
142 grouping ber-test-complex-result-container {
143 container ber-results {
144 uses org-openroadm-common-ber-test:ber-test-options-container;
145 uses ber-test-complex-result-details-container;
150 "This is the ber-test rpc. It is supported for a service in the service-list.";
152 uses org-openroadm-common-service-types:sdnc-request-header;
157 uses org-openroadm-common-ber-test:ber-test-options-container;
160 uses org-openroadm-common-service-types:configuration-response-common;
163 rpc complex-ber-test {
165 "This is the complex-ber-test rpc. It is supported for a service in the service-list.";
167 uses org-openroadm-common-service-types:sdnc-request-header;
172 uses org-openroadm-common-ber-test:complex-ber-test-options-container;
175 uses org-openroadm-common-service-types:configuration-response-common;
178 rpc service-rpc-ber-test-async-callback {
180 "This is the callback notification that the controller invokes on the carrier system.";
182 uses org-openroadm-common-service-types:configuration-response-common;
183 uses org-openroadm-common-service-types:service-identifiers-container;
185 type yang:date-and-time;
188 "timestamp of the initial rpc command that invoked the test";
191 type yang:date-and-time;
194 "timestamp of the callback/notification.";
196 uses ber-test-result-details-container;
199 uses org-openroadm-common-service-types:configuration-response-common;
202 rpc complex-service-rpc-ber-test-async-callback {
204 "This is the callback notification that the controller invokes on the carrier system.";
206 uses org-openroadm-common-service-types:configuration-response-common;
207 uses org-openroadm-common-service-types:service-identifiers-container;
209 type yang:date-and-time;
212 "timestamp of the initial rpc command that invoked the test";
215 type yang:date-and-time;
218 "timestamp of the callback/notification.";
220 uses ber-test-complex-result-container;
223 uses org-openroadm-common-service-types:configuration-response-common;
226 notification service-notification-ber-test {
228 "This is the callback notification that the controller invokes on the carrier system.";
229 uses org-openroadm-common-service-types:configuration-response-common;
230 uses org-openroadm-common-service-types:service-identifiers-container;
232 type yang:date-and-time;
235 "timestamp of the initial rpc command that invoked the test";
238 type yang:date-and-time;
241 "timestamp of the callback/notification.";
243 uses ber-test-result-details-container;
245 notification complex-service-notification-ber-test {
247 "This is the callback notification that the controller invokes on the carrier system.";
248 uses org-openroadm-common-service-types:configuration-response-common;
249 uses org-openroadm-common-service-types:service-identifiers-container;
251 type yang:date-and-time;
254 "timestamp of the initial rpc command that invoked the test";
257 type yang:date-and-time;
260 "timestamp of the callback/notification.";
262 uses ber-test-complex-result-details-container;