blob: 741439682a138fa42c948cddb94e1b83180d9846 [file] [log] [blame]
Marc De Leenheerf20c7fb2017-05-05 10:24:41 -07001module org-openroadm-de-operations {
2 namespace "http://org/openroadm/de/operations";
3 prefix org-openroadm-de-operations;
4
5 import org-openroadm-resource {
6 prefix org-openroadm-resource;
7 }
8
9 import org-openroadm-common-types {
10 prefix org-openroadm-common-types;
11 }
12
13 organization "Open ROADM MSA";
14 contact
15 "OpenROADM.org";
16 description
17 "YANG definitions of operations.
18
19 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
20 AT&T Intellectual Property. All other rights reserved.
21
22 Redistribution and use in source and binary forms, with or without modification,
23 are permitted provided that the following conditions are met:
24
25 * Redistributions of source code must retain the above copyright notice, this
26 list of conditions and the following disclaimer.
27 * Redistributions in binary form must reproduce the above copyright notice,
28 this list of conditions and the following disclaimer in the documentation and/or
29 other materials provided with the distribution.
30 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
31 contributors may be used to endorse or promote products derived from this software
32 without specific prior written permission.
33
34 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
35 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
36 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
37 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
38 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
39 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
40 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
41 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
42 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43 POSSIBILITY OF SUCH DAMAGE.";
44
45 revision 2016-10-14 {
46 description
47 "Version 1.2";
48 }
49
50 rpc restart {
51 description
52 "Restart a resource with warm/cold option. If no resource is provided or only the device name is provded, then the device itself will be restarted.
53 Note that resources on the device will not be restartable";
54 input {
55 uses org-openroadm-resource:resource;
56 leaf option{
57 type enumeration{
58 enum "warm"{
59 value 1;
60 }
61 enum "cold"{
62 value 2;
63 }
64 }
65 }
66 }
67 output {
68 uses org-openroadm-common-types:rpc-response-status;
69 }
70 }
71 notification restart-notification {
72 description
73 "This Notification is sent when a resource on a device has completed a restart. This is sent as a result of restarts triggered via the
74 restart RPC and other means. The resource identified is the from the RPC request or the equivalment if the restart was triggered another way.";
75 uses org-openroadm-resource:resource;
76 }
77}