[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [YANG] import statement
On Sat, May 03, 2008 at 05:31:03PM +0200, Ladislav Lhotka wrote:
>
> Juergen Schoenwaelder p????e v So 03. 05. 2008 v 16:32 +0200:
>
> > There are also examples. An augment of foo-cont simply sticks nodes
> > into the foo-cont container; there is no new instantiation of
> > foo-cont.
> >
>
> Example on pages 82 and 83 contradicts what you are saying: the augment
> statement in namespace http://example.com/schema/ds0 takes the schema
> subtree defined by "container interfaces" in namespace
> http://example.com/schema/interfaces, augments it and effectively places
> the result at the spot of the augment statement in the
> http://example.com/schema/ds0 namespace.
I don't see the contradiction.
augment "/if:interfaces/if:ifEntry" {
when "if:ifType='ds0'";
leaf ds0ChannelNumber {
type ChannelNumber;
}
}
This augment introduces a leaf ds0:ds0ChannelNumber that appears under
/if:interfaces/if:ifEntry and this is what the example shows. There
is no new instantiation of /if:interfaces/if:ifEntry.
/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