691e4dc8e2a92d01be99d07bca92094c8f1bf70b
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / resources / restconf / parser / serializer / serializer-test.yang
1 module serializer-test {
2   namespace "serializer:test";
3   prefix "st";
4   yang-version 1;
5
6   import serializer-test-included { prefix sti; revision-date 2016-06-06; }
7
8   revision 2016-06-06 {
9     description
10       "Initial revision.";
11   }
12
13   container contA {
14     leaf-list leaf-list-A {
15       type string;
16     }
17
18     leaf leaf-A {
19       type string;
20     }
21
22     list list-A {
23       key list-key;
24
25       leaf list-key {
26         type uint8;
27       }
28
29       leaf-list leaf-list-AA {
30         type string;
31       }
32     }
33   }
34
35   leaf-list leaf-list-0 {
36     type boolean;
37   }
38
39   leaf leaf-0 {
40     type string;
41   }
42
43   list list-no-key {
44     leaf name {
45       type string;
46     }
47
48     leaf number {
49       type uint8;
50     }
51   }
52
53   list list-one-key {
54     key name;
55
56     leaf name {
57       type string;
58     }
59
60     leaf number {
61       type uint8;
62     }
63   }
64
65   list list-multiple-keys {
66     key "name number enabled";
67
68     leaf name {
69       type string;
70     }
71
72     leaf number {
73       type uint8;
74     }
75
76     leaf enabled {
77       type boolean;
78     }
79   }
80
81   augment "/sti:augmented-list" {
82     leaf augmented-leaf {
83       type string;
84     }
85   }
86 }