Update comments and imports after DataChangeListener changes
[openflowplugin.git] / applications / notification-supplier / src / main / yang / notification-supplier.yang
1 module notification-supplier {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:openflow:applications:notification-supplier";
4     prefix "notification";
5     import config {prefix config; revision-date 2013-04-05;}
6     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28;}
7
8     description
9         "Translator tool for relevant wildcard path DataTreeModification to Notifications.";
10
11     revision "2015-08-20" {
12         description
13             "Initial revision";
14     }
15
16     identity notification-supplier {
17         base "config:module-type";
18         config:java-name-prefix Notif;
19     }
20
21     augment "/config:modules/config:module/config:configuration" {
22         case notification-supplier {
23             when "/config:modules/config:module/config:type = 'notification-supplier'";
24
25             container notification-service {
26                 uses config:service-ref {
27                     refine type {
28                         mandatory true;
29                         config:required-identity mdsal:binding-notification-service;
30                     }
31                 }
32             }
33
34             container data-broker {
35                 uses config:service-ref {
36                     refine type {
37                         mandatory false;
38                         config:required-identity mdsal:binding-async-data-broker;
39                     }
40                 }
41             }
42
43             container notification-supplier-settings {
44                 leaf flow-support {
45                     type boolean;
46                     default true;
47                 }
48                 leaf meter-support {
49                     type boolean;
50                     default true;
51                 }
52                 leaf group-support {
53                     type boolean;
54                     default true;
55                 }
56                 leaf node-connector-stat-support {
57                     type boolean;
58                     default false;
59                 }
60                 leaf flow-table-stat-support {
61                     type boolean;
62                     default false;
63                 }
64                 leaf group-stat-support {
65                     type boolean;
66                     default false;
67                 }
68                 leaf meter-stat-support {
69                     type boolean;
70                     default false;
71                 }
72                 leaf queue-stat-support {
73                     type boolean;
74                     default false;
75                 }
76                 leaf flow-stat-support {
77                     type boolean;
78                     default false;
79                 }
80             }
81         }
82     }
83 }