[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [YANG] import statement



On Sat, May 03, 2008 at 01:07:13PM +0200, Ladislav Lhotka wrote:
 
> I have difficulties in understanding what happens when a module imports
> another and the latter contains "real" data tree, not just groupings and
> typedefs. For example:
> 
> module foo {
>   namespace "urn:foo";
>   prefix foo;
>   container foo-cont {
>     leaf foo-leaf {
>       ...
>     }
>   }
> }
> 
> module bar {
>   namespace "urn:bar";
>   prefix bar;
>   import foo {
>     prefix foo;
>   }
>   container bar-cont {
>     leaf bar-leaf {
>       ...
>     }
>   }
> }  

No. An import simply means that the names defined in the imported
module become known and accessible - there are no side-effects of
imports.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>
_______________________________________________
YANG mailing list
YANG at ietf.org
https://www.ietf.org/mailman/listinfo/yang