cf6849a99d06a38e9b977d192cb8902d06ce6f13
[netconf.git] / restconf / restconf-common-models / src / main / yang / odl-device-notification.yang
1 module odl-device-notification {
2   namespace "urn:opendaylight:device:notification";
3   prefix "device-notifi";
4
5   import ietf-inet-types {
6     prefix inet;
7   }
8
9   organization "OpenDaylight";
10   contact "Nikhil Soni <nikk.sonitech@gmail.com>";
11
12   description
13     "This module contains the definition of methods related to
14     device notification model
15
16      Copyright (c)2022 Nikhil Soni and others. All rights reserved.
17
18      This program and the accompanying materials are made available
19      under the terms of the Eclipse Public License v1.0 which
20      accompanies this distribution, and is available at
21      http://www.eclipse.org/legal/epl-v10.html";
22
23   revision "2022-11-06" {
24     description
25       "Initial revision";
26   }
27
28   rpc subscribe-device-notification {
29     description
30       "Subscribe to notifications on specified device.";
31
32     input {
33         leaf path {
34           type instance-identifier;
35           description "Device mount point path";
36         }
37      }
38      output {
39         leaf stream-path {
40           type inet:uri;
41           description "Device Notification stream URL";
42         }
43      }
44   }
45 }