Merge "BUG-6059: Moving Statistics Manager to DTCL"
[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-off {
43             type boolean;
44             default "false";
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 notification-flow-removed-off {
87             description "Turning off flow removed notification";
88             type boolean;
89             default "false";
90         }
91     }
92 }