UT and defect fixes for DF serializer
[ccsdk/sli/plugins.git] / restconf-client / provider / src / test / resources / yang / test-augment.yang
1 module test-augment {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:augment";
4     prefix "hello";
5
6     import test-yang {
7        prefix t;
8     }
9
10     revision "2015-01-05" {
11         description "Initial revision of hello model";
12     }
13
14     augment "/t:cont1/t:cont2/t:cont4" {
15         container cont5 {
16             leaf leaf13 {
17                type empty;
18             }
19         }
20         list list7 {
21             leaf leaf14 {
22                 type instance-identifier;
23             }
24         }
25         leaf leaf15 {
26             type string;
27         }
28         leaf-list ll6 {
29             type union {
30                 type int32;
31                 type enumeration {
32                     enum "unbounded";
33                 }
34             }
35         }
36         uses "t:g1";
37     }
38
39     uses "t:g1";
40     augment "/t:ch1/t:c1/t:cont8/t:cont6" {
41         choice ch2 {
42             case c3 {
43                 leaf leaf21 {
44                     type string;
45                 }
46             }
47             case c4 {
48                 leaf leaf22 {
49                     type enumeration {
50                         enum zero;
51                         enum one;
52                         enum seven {
53                             value 7;
54                         }
55                     }
56                 }
57             }
58         }
59     }
60
61     augment "/t:ch1" {
62        case c5 {
63           container cont10 {
64               leaf leaf23 {
65                   type string;
66               }
67           }
68        }
69     }
70
71     augment "/t:ch1/t:c1" {
72         container cont7 {
73             leaf leaf24 {
74                 type string;
75             }
76         }
77     }
78
79     augment "/t:cont13/t:cont12" {
80        leaf leaf29 {
81            type string;
82        }
83     }
84
85     augment "/t:create-sfc/t:input" {
86         leaf leaf36 {
87             type bits {
88                 bit angle {
89                     position 0;
90                 }
91                 bit degree {
92                     position 1;
93                 }
94                 bit movement {
95                     position 2;
96                 }
97             }
98         }
99     }
100
101     augment "/t:create-sfc/t:output" {
102        leaf leaf37 {
103            type boolean;
104        }
105     }
106 }