clicon / clixon-controller

Clixon network controller
Apache License 2.0
14 stars 5 forks source link

Patch device YANGs in user-friendly way #57

Closed olofhagsand closed 11 months ago

olofhagsand commented 11 months ago

Some device YANGs are broken. That is, they announce a yang that does not match the config they support. In particular, there may be XML tags, eg that have no corresponding YANG statement. This may not be fixed bu augmenting the YANG (eg from a local clixon- extension YANG) since it has another namespace. It can be solved by the C yang-patch callback, but that involves writing C code for patching a YANG on load, and this may be considered user-unfriendly.

olofhagsand commented 11 months ago

Actually, you may just as well patch the modules after downloading them and leave them in the local MNT dir.

Instead, handle broken device yangs with: https://github.com/clicon/clixon-controller/issues/59