1a2ccb30e9b1da8b7dfd66249d37f6b82ee5d9e7
[mdsal.git] / binding / mdsal-binding-spec-2 / src / test / resources / odl-test-identifiers.yang
1 module odl-test-identifiers {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:mdsal:binding2:test:identifiers";
4     prefix "oti";
5
6     description
7         "Testing allowed identifier names.
8         see http://tools.ietf.org/html/rfc6020#section-6.2";
9
10     revision "2016-03-31" {
11         description
12             "Initial revision, for ODL Boron.";
13     }
14
15     container items {
16         list item {
17             description
18                 "Each identifier starts with an uppercase or lowercase ASCII
19                 letter or an underscore character, followed by zero or more ASCII
20                 letters, digits, underscore characters, hyphens, and dots.";
21             key "foo Foo FOO fOO foo0 foo_ foo- foo. _foo"
22             leaf foo {
23                 type string;
24             }
25             leaf Foo {
26                 type string;
27             }
28             leaf FOO {
29                 type string;
30             }
31             leaf fOO {
32                 type string;
33             }
34             leaf foo0 {
35                 type string;
36             }
37             leaf foo_ {
38                 type string;
39             }
40             leaf foo- {
41                 type string;
42             }
43             leaf foo. {
44                 type string;
45             }
46             leaf _foo {
47                 type string;
48             }
49         }
50     }
51
52 }