Bug7485 Make statistics poller parameters configurable.
[openflowplugin.git] / openflowplugin-api / src / main / yang / openflow-provider-config.yang
1 module openflow-provider-config {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:openflow:provider:config";
4     prefix "openflow-provider-config";
5
6     description
7         "Configuration for an Openflow provider.";
8
9     revision "2016-05-10" {
10         description
11             "Initial revision";
12     }
13
14     typedef non-zero-uint32-type {
15         type uint32 {
16             range "1..max";
17         }
18     }
19
20     typedef non-zero-uint16-type {
21         type uint16 {
22             range "1..max";
23         }
24     }
25
26     container openflow-provider-config {
27         leaf rpc-requests-quota {
28             type uint32;
29             default 20000;
30         }
31
32         leaf switch-features-mandatory {
33             type boolean;
34             default false;
35         }
36
37         leaf global-notification-quota {
38             type uint32;
39             default 64000;
40         }
41
42         leaf is-statistics-polling-on {
43             type boolean;
44             default "true";
45         }
46
47         leaf is-statistics-rpc-enabled {
48             description "Deprecated - exposing backward compatible statistics rpcs providing result in form of async notification";
49             type boolean;
50             default "false";
51         }
52
53         leaf barrier-interval-timeout-limit {
54             type non-zero-uint32-type;
55             default 500;
56         }
57
58         leaf barrier-count-limit {
59             type non-zero-uint16-type;
60             default 25600;
61         }
62
63         leaf echo-reply-timeout {
64             type non-zero-uint32-type;
65             default 2000;
66         }
67
68         leaf thread-pool-min-threads {
69             description "Mininum (starting) number of threads in thread pool";
70             type uint16;
71             default 1;
72         }
73
74         leaf thread-pool-max-threads {
75             description "Maximum number of threads in thread pool";
76             type non-zero-uint16-type;
77             default 32000;
78         }
79
80         leaf thread-pool-timeout {
81             description "After how much time (in seconds) of inactivity will be threads in pool terminated";
82             type uint32;
83             default 60;
84         }
85
86         leaf enable-flow-removed-notification {
87             description "Turning on flow removed notification";
88             type boolean;
89             default "true";
90         }
91
92         leaf skip-table-features {
93             description "Ability to skip pulling and storing of large table features. These features are still
94             available via rpc but if set to true then maintenance in DS will be omitted";
95             type boolean;
96             default "true";
97         }
98
99         leaf basic-timer-delay {
100             description "initial delay used in polling the statistics, value is in milliseconds";
101             type non-zero-uint32-type;
102             default 3000;
103         }
104
105         leaf maximum-timer-delay {
106             description "maximum timer delay is the wait time to collect next statistics
107             used in polling the statistics, value is in milliseconds";
108             type non-zero-uint32-type;
109             default 900000;
110         }
111     }
112 }