summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/nn-to-json/leafref/main-module.yang
blob: 0d90d2b4eb9a0415bd50c356a0f8c6d7f02112e1 (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
module main-module {
    namespace "main:module";

    prefix "mainmod";
    revision 2013-12-02 {
    }

    container cont {
        leaf lf1 {
           /*
            *FIX ME
            * If is this leaf lf1 called from cont-augment-module.yang 
            * from lf4, type that will be returned to the lf1 is string.
            * Than there are failing tests because of we have string, 
            * do not number(uint32) 
            */
//            type uint32;
            type string;
        }

        container cont1 {
            leaf lf11 {
            	/*
            	 * FIX ME TOO WITH BAD PARSING
            	 */
//            	type boolean;
                type string;
            }
        }

        leaf lf2 {
            type leafref {
                path "../lf1";
            }
        }

        leaf lf3 {
            type leafref {
                path "/cont/cont1/lf11";
            }
        }

        /* reference to nonexisting leaf */
        leaf lf5 {
            type leafref {
                path "/cont/lf";
            }
        }
    }
}