rgwilton / YANG-Packages-Draft

IETF Individual Draft for possible YANG Package Solution
Other
0 stars 0 forks source link

Should package definitions differ between YANG library and instance data docs? #12

Closed rgwilton closed 4 years ago

rgwilton commented 5 years ago

Is it OK for the YANG definition used for package instance data vs YANG library to differ? The reason for the difference is to allow "Module Sets" to be reused, potentially minimizing duplicate data in YANG library.

BalazsLengyel commented 4 years ago

No. I strongly disagree. The online and offline formats should be the same with one single model.

Two formats are more complex. Leads to misunderstanding.

Some people will use yanglib to document server capabilities anyway. That will now include packages: and pronto we have two different formats for instance data about packages.

Having two different formats is a much bigger problem than duplicating some readonly data.

rgwilton commented 4 years ago

The formats have been unified after recent discussions. The YANG package definition on the server is the same as the instance-data-document except that can contain multiple packages and carries a couple of extra fields (location and checksum).