mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
530 stars 343 forks source link

do not mark modules are being removed #801

Closed mcr closed 2 years ago

mcr commented 2 years ago

When formatting the sid output we were seeing:

WARNING, obsolete definitions should be defined as 'deprecated' or 'obsolete'.

because of some post-processing, it wasn't obvious at first that this was because the "module" statements were all being marked as removed. It is not clear to me why this is. I've tried removing the SID allocation for the modules, but that didn't help.

This match restricts the setting to not apply to modules. That's probably the wrong thing to do. Test examples can be provided, but they are complex to do.