Hi,

 

this is a YANG 1, not 1.1 question. 

 

For the following example:

 

module main {

    namespace "uri:main";

    prefix "m";

    include a;

    include b;

}

 

submodule a {

    belongs-to main {

        prefix "a";

    }

    include b;

    container top {

        leaf top-leaf {

            type string;

        }

        uses foo;

    }    

}

 

submodule b {

    belongs-to main {

        prefix "b";

    }

    grouping foo {

        leaf some-leaf {

            type leafref {

                path "/top/top-leaf";

            }

        }

    }

}

 

Note the "path" expression that is referencing names that do not seem to be in 
b's scope. Is this a valid "path" expression (names resolved upon usage) or 
should all names inside the "grouping" be resolved where the "grouping" is 
defined? 

 

Jernej

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to