[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [YANG] import statement
Juergen Schoenwaelder píše v So 03. 05. 2008 v 14:02 +0200:
> >
> > 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.
Then the one and only way for utilizing the imported name "foo-cont" in
module bar is in
augment /foo:foo-cont {
...
}
which results in placing (possibly augmented) copy of the "foo-cont"
container at the location of the augment statement. Or am I missing
something?
Lada
--
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C
_______________________________________________
YANG mailing list
YANG at ietf.org
https://www.ietf.org/mailman/listinfo/yang