44c33f6fea96c8492f99897843a46e88ac6deca2
[controller.git] / opendaylight / config / netty-threadgroup-config / src / main / yang / netty-threadgroup.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module threadgroup {
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup";
5     prefix "netty-th";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import netty { prefix netty; revision-date 2013-11-19; }
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
16          netty threadgroup implementation.
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         status deprecated;
27         base config:module-type;
28         config:provided-service netty:netty-threadgroup;
29         config:java-name-prefix NettyThreadgroup;
30     }
31
32     augment "/config:modules/config:module/config:configuration" {
33         case netty-threadgroup-fixed {
34             when "/config:modules/config:module/config:type = 'netty-threadgroup-fixed'";
35
36             leaf thread-count {
37                 status deprecated;
38                 type uint16;
39
40                 description "Number of threads to be used by NioEventLoopGroup. This attribute is optional and default value will be 2* Number of CPUs";
41             }
42
43             // TODO add optional thread factory dependency
44
45         }
46     }
47 }