test-diff.yang revision 8128f33d
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        list nested-list {
32            key "name";
33
34            leaf name {
35                type string;
36            }
37
38            leaf text {
39                type string;
40            }
41
42            list deep-list {
43                key "name";
44
45                leaf name {
46                    type string;
47                }
48
49            }
50        }
51    }
52
53    container with-choice {
54
55        choice choice {
56            case case1 {
57                leaf in-case1 {
58                    type string;
59                }
60            }
61
62            case case2 {
63                leaf in-case2 {
64                    type string;
65                }
66            }
67        }
68    }
69
70}
71