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