upgrade models to OpenROADM service 5.1.0
[transportpce.git] / ordmodels / service / src / main / yang / org-openroadm-common-ber-test@2018-11-30.yang
1 module org-openroadm-common-ber-test {
2   namespace "http://org/openroadm/common-ber-test";
3   prefix org-openroadm-common-ber-test;
4
5   organization
6     "Open ROADM MSA";
7   contact
8     "OpenROADM.org";
9   description
10     "YANG definitions for ber test that are common to the ber-test rpc and its
11      associated callback rpc (service-rpc-async-callback)
12
13       Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
14       All other rights reserved.
15
16       Redistribution and use in source and binary forms, with or without modification,
17       are permitted provided that the following conditions are met:
18
19       * Redistributions of source code must retain the above copyright notice, this
20         list of conditions and the following disclaimer.
21       * Redistributions in binary form must reproduce the above copyright notice,
22         this list of conditions and the following disclaimer in the documentation and/or
23         other materials provided with the distribution.
24       * Neither the Members of the Open ROADM MSA Agreement nor the names of its
25         contributors may be used to endorse or promote products derived from this software
26         without specific prior written permission.
27
28       THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
29       AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
30       WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
31       IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
32       INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
33       NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
34       OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
35       WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36       ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37       POSSIBILITY OF SUCH DAMAGE";
38
39   revision 2018-11-30 {
40     description
41       "Version 4.1.0";
42   }
43   revision 2018-03-30 {
44     description
45       "Version 3.0.0";
46   }
47
48   grouping ber-test-options-container {
49     container ber-options {
50       leaf target-prefec-ber {
51         type decimal64 {
52           fraction-digits 4;
53         }
54       }
55       leaf duration {
56         type uint16;
57         units "seconds";
58       }
59       leaf pm-polling-timeout {
60         type uint16;
61         units "seconds";
62       }
63       leaf retry-attempts {
64         type uint16;
65       }
66     }
67   }
68   grouping complex-ber-test-options-container {
69     container complex-ber-options {
70       uses ber-test-options-container;
71       leaf is-complex-result{
72         type boolean;
73         default "false";
74         description
75           "True: Indicates that the results should be provided via complex-service-rpc-ber-test-async-callback. False: Indicates that the results should be provided via  service-rpc-ber-test-async-callback";
76       }
77     }
78   }
79 }