summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/modules/nested-module.yang
blob: 794859b0c2566480d9cf80b1cc15379392b634c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module nested-module {
    namespace "urn:nested:module";
    prefix "nested";
    revision "2014-06-03";

    container depth1-cont {
        list depth2-cont1 {
            container depth3-cont1 {
                container depth4-cont1 {
                    leaf depth5-leaf1 {
                        type string;
                    }
                }

                leaf depth4-leaf1 {
                    type string;
                }
            }

            leaf depth3-leaf1 {
                type string;
            }
        }

        /* list depth2-list2 was added to test keyed list */
        list depth2-list2 {
            key "depth3-lf1-key depth3-lf2-key";
            leaf depth3-lf1-key {
                type string;
            }
            leaf depth3-lf2-key {
                type string;
            }
            leaf depth3-lf3 {
                type string;
            }
        }

        leaf-list depth2-lfLst1 {
            type string;
        }

        container depth2-cont2 {
            container depth3-cont2 {
                container depth4-cont2 {
                    leaf depth5-leaf2 {
                        type string;
                    }
                }

                leaf depth4-leaf2 {
                    type string;
                }
            }

            leaf depth3-leaf2 {
                type string;
            }
        }

        leaf depth2-leaf1 {
            type string;
        }
    }

    notification notifi{
        description "Notifi";
    }
}