test-diff.yang revision be05d84d
1module test-diff {
2    yang-version 1;
3    namespace "urn:opendaylight:params:xml:ns:yang:test:diff";
4    prefix "td";
5
6    revision "2015-01-05" {
7        description "Initial revision";
8    }
9
10    container presence {
11        presence "testing presence";
12    }
13
14    container top-container {
15        leaf string {
16            type string;
17        }
18
19        container empty {
20            leaf in-empty {
21                type string;
22            }
23        }
24
25        container for-leaf-list {
26            leaf-list nested-leaf-list {
27                type string;
28            }
29        }
30
31        container nested-container {
32            list nested-list-in-container {
33                key "name";
34
35                leaf name {
36                    type string;
37                }
38            }
39
40            leaf nested-container-val {
41                type string;
42            }
43
44            leaf-list nested-container-leaf-list {
45                type string;
46            }
47
48            choice nested-choice {
49                case nested-case{
50                    leaf under-nested-case{
51                        type string;
52                    }
53                }
54            }
55        }
56
57        list nested-list {
58            key "name";
59
60            leaf name {
61                type string;
62            }
63
64            leaf text {
65                type string;
66            }
67
68            list deep-list {
69                key "name";
70
71                leaf name {
72                    type string;
73                }
74
75            }
76        }
77    }
78
79    augment /top-container/nested-container {
80        container under-aug-container{
81           leaf under-aug-cont-leaf{
82                type string;
83           }
84        }
85
86        leaf under-aug-leaf {
87            type string;
88        }
89
90        list under-aug-list {
91            key under-aug-list-key;
92            leaf under-aug-list-key{
93                type string;
94            }
95        }
96
97        leaf-list under-aug-leaflist{
98            type string;
99        }
100    }
101
102    augment /top-container/nested-container/under-aug-container {
103        container nested-under-aug-container {
104            leaf nested-under-aug-container-leaf {
105                type string;
106            }
107        }
108
109        leaf nested-under-aug-leaf{
110            type string;
111        }
112
113        list nested-under-aug-list{
114            key nested-under-aug-list-key;
115            leaf nested-under-aug-list-key{
116                type string;
117            }
118        }
119
120        leaf-list nested-under-aug-leaf-list {
121            type string;
122        }
123    }
124
125    container with-choice {
126
127        choice choice {
128            case case1 {
129                leaf in-case1 {
130                    type string;
131                }
132            }
133
134            case case2 {
135                leaf in-case2 {
136                    type string;
137                }
138            }
139        }
140    }
141
142}
143