cc77af57d6abf328adb553fe76e7ff2aa6fc373e
[controller.git] / opendaylight / md-sal / sal-remote / src / main / yang / opendaylight-md-sal-remote.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 types related to
13            Internet Assigned Numbers Authority.
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         leaf data-change-event {
52             type instance-identifier;
53          }
54     }
55
56     rpc create-notification-stream {
57         input {
58             leaf-list notifications {
59                 type q-name;
60                 description "Notification QNames";
61             }
62          }
63         output {
64             leaf notification-stream-identifier {
65                 type string;
66                 description "Unique notification stream identifier, in which notifications will be propagated";
67             }
68         }
69     }
70
71     rpc begin-transaction{
72         output{
73             anyxml data-modification-transaction{
74                 description "DataModificationTransaction xml";
75             }
76         }
77     }
78
79 }