mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
528 stars 342 forks source link

DUPLICATE_CHILD_NAME is raised erroneously when multiple argument-less sub-statements are present #890

Closed esmasth closed 4 months ago

esmasth commented 4 months ago

DUPLICATE_CHILD_NAME error is raised when multiple sub-statements of a node have the same argument. The checker however treats argument-less sub-statements as with argument value as "None" text, and raises the same error as below

.\test\test.yang:88: error(1): DUPLICATE_CHILD_NAME: there is already a child node to "alpha" at .\test\test.yang:88 with the name "None" defined at .\test\test.yang:89

esmasth commented 4 months ago

It was due to misuse of a plugin API, not an issue.