0f6aebf110ac4110ccde86cc26818d0f5cd893f0
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / resources / streams / sal-remote@2014-01-14.yang
1 module sal-remote {
2
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:remote";
5     prefix "sal-remote";
6
7     organization "Cisco Systems, Inc.";
8     contact "Martin Bobak <mbobak@cisco.com>";
9
10     description
11           "This module contains the definition of methods related to
12            sal remote model.
13
14            Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
15
16            This program and the accompanying materials are made available
17            under the terms of the Eclipse Public License v1.0 which
18            accompanies this distribution, and is available at
19            http://www.eclipse.org/legal/epl-v10.html";
20
21     revision "2014-01-14" {
22         description
23             "Initial revision";
24     }
25
26
27      typedef q-name {
28        type string;
29        reference
30          "http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#QName";
31      }
32
33     rpc create-data-change-event-subscription {
34         input {
35             leaf path {
36                 type instance-identifier;
37                 description "Subtree path. ";
38             }
39          }
40          output {
41             leaf stream-name {
42                 type string;
43                 description "Notification stream name.";
44             }
45          }
46     }
47
48         rpc create-data-change-event-subscription2 {
49             input {
50                 leaf path2 {
51                     type instance-identifier;
52                     description "Subtree path. ";
53                 }
54              }
55              output {
56                 leaf stream-name2 {
57                     type string;
58                     description "Notification stream name.";
59                 }
60              }
61         }
62
63     notification data-changed-notification {
64         description "Data change notification.";
65         list data-change-event {
66             key path;
67             leaf path {
68                 type instance-identifier;
69             }
70             leaf store {
71                 type enumeration {
72                     enum config;
73                     enum operation;
74                 }
75             }
76             leaf operation {
77                 type enumeration {
78                     enum created;
79                     enum updated;
80                     enum deleted;
81                 }
82             }
83             anyxml data{
84                 description "DataObject ";
85             }
86          }
87     }
88
89     rpc create-notification-stream {
90         input {
91             leaf-list notifications {
92                 type q-name;
93                 description "Notification QNames";
94             }
95          }
96         output {
97             leaf notification-stream-identifier {
98                 type string;
99                 description "Unique notification stream identifier, in which notifications will be propagated";
100             }
101         }
102     }
103
104     rpc begin-transaction{
105         output{
106             anyxml data-modification-transaction{
107                 description "DataModificationTransaction xml";
108             }
109         }
110     }
111
112 }