Closed classcwnd closed 8 years ago
Augments should be correct in the internal structures, but I see some issues with the tree printer:
1) augments are printed only in the target module, not in the module where they are defined
2) in the target module, the augments data are printed with the prefix of the module where they are defined. pyang does it this way, but we print module names as prefix (in your output, see type of /contexts/system/lacp/mac-addr
)
hi
I found the fixed version still uses module name as the prefix not using defined prefix.
That's correct. The defined prefixes are not necessarily unique (in contrast to module names), so, as I wrote, we want to use module names as prefixes in tree output - they are longer, but it is much more clear from which module data comes.
Unfortunatelly, this differs libyang's tree output from pyang, but it is intended.
Ok, I see. :)
I added some modules and found the model tree of augment module can not be printed out. Is this normal? I am afraid that the augment models are not added successfully. The models.tar was uploaded in #22
Following are the log of my steps.
ietf-interfaces
&ericsson-contexts-ipos
are main models, andericsson-context-ipos
&ericsson-interfaces-ext-ipos
are augment models.