Closed siarheul closed 2 years ago
According to YANG rules (Section 7.5.7 in RFC 7950), the instances of the leaves contained in your grouping may appear in any order – except the key remote-assigned-name
, which is therefore put first. So <interleave>
is really appropriate here, with <group>
validation could fail on instance documents that are valid according to YANG rules.
@llhotka Thank you for your response! What if I want to have leaf ordered? Does YANG support that?
Only in specific cases, see the cited sec. 7.5.7.
I try to convert my Yang model to Relax NG model. The issue is my 'grouping' statement is converted to 'interleave' when I run command yang2dsdl -t data file.yang Instead of 'interleave' I want to have 'group' element. Is it possible?
My yang look like this
It results in the following Relax NG code
I can change 'interleave' to 'group' manually - it is still valid Relax NG file, but I want to know if the problem with my YANG or with pyang tool
Thank you!