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