Revert "Replace tabs with spaces in config yang files"
[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         base config:module-type;
33         config:provided-service netty:netty-timer;
34         config:java-name-prefix HashedWheelTimer;
35     }
36
37     augment "/config:modules/config:module/config:configuration" {
38         case netty-hashed-wheel-timer {
39             when "/config:modules/config:module/config:type = 'netty-hashed-wheel-timer'";
40             
41             leaf tick-duration {
42                 type uint32;
43             }
44             
45             leaf ticks-per-wheel {
46                 type uint16;
47             }
48             
49                         container thread-factory {
50                                 uses config:service-ref {
51                                         refine type {
52                                                 mandatory false;
53                                                 config:required-identity th:threadfactory;
54                                         }
55                                 }
56                         }
57         }
58     }
59 }