a27f9fe6c3270307d2d582b1d1a4542843fca98d
[yangtools.git] / yang / yang-parser-impl / src / test / resources / stmt-test / constraints / foo.yang
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 module foo {
9     yang-version 1;
10     namespace "urn:opendaylight.foo";
11     prefix "foo";
12
13     revision "2013-10-08" {
14     }
15
16     typedef my-decimal-type {
17         type decimal64 {
18             fraction-digits 6;
19             range "1.5..5.5";
20         }
21     }
22
23     leaf id-decimal64 {
24         type decimal64 {
25             fraction-digits 4;
26             range "1.5..5.5";
27         }
28     }
29 }