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