Build yang to xml successfully. but there are two nodes of exa:config/exa:shelf/exa:slot/exa:interface/eth:ethernet**/eth:vlan**, which will cause my daemon some unexpected behavior.
I don’t see why you think there will be two ‘vlan’ nodes - the first augment adds it, the second augment adds ‘access-group’ as a child to the ‘vlan’ node added by the first augment (note that both ‘vlan’ and ‘access-group’ will have the namespace/prefix of B.yang).
Thanks @mnovak, I am not familar with the format text display. can you tell me how to do what you did?
Yes, we use pyang tool to convert all yang data model to one xml file.
The issue is the pyang convert all yang files to one xml file with two vlan nodes under exa:config/exa:shelf/exa:slot/exa:interface/eth:ethernet.
and when refine nested grouping doesn’t take effect on both vlan nodes and only one vlan node has the refined information.
Is it the pyang tools problem? thanks.
@per, you are right. It should be only one node. But the pyang build all yang files to one xml file with two vlan nodes.
If I rectify the yang as following and will only see one node in the xml file.