[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [YANG] import statement
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.
>
It's a bit tricky.
Augment puts nodes from the augmenting namespace and
puts it 'someplace else', which could be the same namespace.
The uses-stmt takes nodes from 'somewhere else' and puts them 'here',
in the namespace for 'here'.
> Lada
>
Andy
_______________________________________________
YANG mailing list
YANG at ietf.org
htZ����.�Ǭ���j��t}�<E�sڶ����'�~���ڕ:2jx0y��r�z�m�k����zX�z��N������m�܆+�������E��&r���������,�]��[�+{v��W(���a#>'D�����s�4��t�
5ή("��S�&���{v��W(�7����������E��&���,�ZjXh���o'(����c����D�L��:����(����d��s�4��t�
5Պ��IƧ������Z���eҥ����
9t�jd�����J��-�t�jd�j۬6���