Deprecate netty config modules
[controller.git] / opendaylight / config / netty-timer-config / src / main / yang / netty-timer.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module netty-timer {
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:netty:timer";
5     prefix "netty-timer";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import netty { prefix netty; revision-date 2013-11-19; }
9     import threadpool { prefix th; revision-date 2013-04-09; }
10
11     organization "Cisco Systems, Inc.";
12
13     contact "Milos Fabian <milfabia@cisco.com>";
14
15     description
16         "This module contains the base YANG definitions for
17          netty timer implementation.
18
19         Copyright (c)2013 Cisco Systems, Inc. All rights reserved.;
20
21         This program and the accompanying materials are made available
22         under the terms of the Eclipse Public License v1.0 which
23         accompanies this distribution, and is available at
24         http://www.eclipse.org/legal/epl-v10.html";
25
26     revision "2013-11-19" {
27         description
28             "Initial revision";
29     }
30
31     identity netty-hashed-wheel-timer {
32         status deprecated;
33         base config:module-type;
34         config:provided-service netty:netty-timer;
35         config:java-name-prefix HashedWheelTimer;
36     }
37
38     augment "/config:modules/config:module/config:configuration" {
39         case netty-hashed-wheel-timer {
40             when "/config:modules/config:module/config:type = 'netty-hashed-wheel-timer'";
41
42             leaf tick-duration {
43                 status deprecated;
44                 type uint32;
45             }
46
47             leaf ticks-per-wheel {
48                 status deprecated;
49                 type uint16;
50             }
51
52             container thread-factory {
53                 status deprecated;
54                 uses config:service-ref {
55                     refine type {
56                         mandatory false;
57                         config:required-identity th:threadfactory;
58                     }
59                 }
60             }
61         }
62     }
63 }