Migrate OSGI compendium reference
[controller.git] / opendaylight / md-sal / sal-common-impl / src / test / resources / normalization-test.yang
1 module normalization-test {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:normalization:test";
4     prefix "norm-test";
5
6     revision "2014-03-13" {
7         description "Initial revision.";
8     }
9
10     grouping outer-grouping {
11     }
12
13     container test {
14         list outer-list {
15             key id;
16             leaf id {
17                 type uint16;
18             }
19             choice outer-choice {
20                 case one {
21                     leaf one {
22                         type string;
23                     }
24                 }
25                 case two-three {
26                     leaf two {
27                         type string;
28                     }
29                     leaf three {
30                         type string;
31                     }
32                }
33            }
34            list inner-list {
35                 key name;
36                 ordered-by user;
37
38                 leaf name {
39                     type string;
40                 }
41                 leaf value {
42                     type string;
43                 }
44             }
45         }
46
47         list unkeyed-list {
48             leaf name {
49                 type string;
50             }
51         }
52
53         leaf-list unordered-leaf-list {
54             type string;
55         }
56
57         leaf-list ordered-leaf-list {
58             ordered-by user;
59             type string;
60         }
61
62         container outer-container {
63         }
64
65         anyxml any-xml-data;
66     }
67
68     augment /norm-test:test/norm-test:outer-container {
69
70         leaf augmented-leaf {
71            type string;
72         }
73     }
74 }