Unit test and decode implementation
[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 string;
18             }
19         }
20         list list7 {
21            leaf leaf14 {
22               type string;
23            }
24         }
25         leaf leaf15 {
26             type string;
27         }
28         leaf-list ll6 {
29             type string;
30         }
31         uses "t:g1";
32     }
33
34     uses "t:g1";
35     augment "/t:ch1/t:c1/t:cont8/t:cont6" {
36         choice ch2 {
37            case c3 {
38                leaf leaf21 {
39                    type string;
40                }
41            }
42            case c4 {
43                leaf leaf22 {
44                    type string;
45                }
46            }
47         }
48     }
49
50     augment "/t:ch1" {
51        case c5 {
52           container cont10 {
53               leaf leaf23 {
54                   type string;
55               }
56           }
57        }
58     }
59
60     augment "/t:ch1/t:c1" {
61         container cont7 {
62             leaf leaf24 {
63                 type string;
64             }
65         }
66     }
67
68     augment "/t:cont13/t:cont12" {
69        leaf leaf29 {
70            type string;
71        }
72     }
73
74     augment "/t:create-sfc/t:input" {
75        leaf leaf36 {
76            type string;
77        }
78     }
79
80     augment "/t:create-sfc/t:output" {
81        leaf leaf37 {
82            type string;
83        }
84     }
85 }