Merge "Bug 4957 RoleContext updated with initialization"
[openflowplugin.git] / applications / statistics-manager / src / main / yang / statistics-manager.yang
1 module statistics-manager {
2
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:openflowplugin:app:statistics-manager";
5     prefix "statistics-manager";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
9     import opendaylight-entity-ownership-service { prefix ownership-service; }
10
11     description
12         "This module contains the base YANG definitions for
13         statitics-manager implementation.";
14
15     revision "2014-09-25" {
16         description
17             "Initial revision.";
18     }
19
20     identity statistics-manager {
21             base config:module-type;
22             config:java-name-prefix StatisticsManager;
23     }
24
25     augment "/config:modules/config:module/config:configuration" {
26         case statistics-manager {
27             when "/config:modules/config:module/config:type = 'statistics-manager'";
28
29             container rpc-registry {
30                 uses config:service-ref {
31                     refine type {
32                         mandatory true;
33                         config:required-identity mdsal:binding-rpc-registry;
34                     }
35                 }
36             }
37
38             container notification-service {
39                 uses config:service-ref {
40                     refine type {
41                         mandatory true;
42                         config:required-identity mdsal:binding-notification-service;
43                     }
44                 }
45             }
46
47             container ownership-service {
48                 uses config:service-ref {
49                     refine type {
50                         mandatory false;
51                         config:required-identity ownership-service:entity-ownership-service;
52                     }
53                 }
54             }
55
56             container data-broker {
57                 uses config:service-ref {
58                     refine type {
59                         mandatory false;
60                         config:required-identity mdsal:binding-async-data-broker;
61                     }
62                 }
63             }
64
65             container statistics-manager-settings {
66                 leaf min-request-net-monitor-interval {
67                     type int32;
68                 }
69                 leaf max-nodes-for-collector {
70                     type int32;
71                 }
72             }
73         }
74     }
75
76 }