Merge "Initial implementation of the ClusteredDataStore"
[controller.git] / opendaylight / config / netty-threadgroup-config / src / main / yang / nsos-netty-threadgroup.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module nsos-threadpool {
3     yang-version 1;
4         namespace "urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup";
5     prefix "netty-t";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import threadpool { prefix th; revision-date 2013-04-09; }
9
10     organization "Cisco Systems, Inc.";
11
12     contact "Robert Varga <rovarga@cisco.com>";
13
14     description
15         "This module contains the base YANG definitions for NS-OS
16          thread-related services.
17
18         Copyright (c)2013 Cisco Systems, Inc. All rights reserved.";
19
20     revision "2013-11-07" {
21         description
22             "Initial revision";
23     }
24
25     identity netty-threadgroup-fixed {
26         base config:module-type;
27         config:provided-service th:netty-threadgroup;
28         config:java-name-prefix NettyThreadgroup;
29     }
30
31     augment "/config:modules/config:module/config:configuration" {
32         case netty-threadgroup-fixed {
33             when "/config:modules/config:module/config:type = 'netty-threadgroup-fixed'";
34
35             leaf thread-count {
36                 type uint16;
37
38                 description "Number of threads to be used by NioEventLoopGroup. This attribute is optional and default value will be 2* Number of CPUs";
39             }
40
41             // TODO add optional thread factory dependency
42
43         }
44     }
45
46     augment "/config:modules/config:module/config:state" {
47         case netty-threadgroup-fixed {
48             when "/config:modules/config:module/config:type = 'netty-threadgroup-fixed'";
49         }
50     }
51
52
53 }